Skip to content

Commit

Permalink
Merge pull request #25708 from ShogunFire/fixAppFreezingWhenClosingEm…
Browse files Browse the repository at this point in the history
…ojiPicker

Fixing the freeze on ios when we choose multiple emojis quickly
  • Loading branch information
Hayata Suenaga authored Aug 24, 2023
2 parents 6a41f01 + 29510b2 commit 7a86d28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
import PropTypes from 'prop-types';
import {View, LayoutAnimation, NativeModules, findNodeHandle} from 'react-native';
import {View, NativeModules, findNodeHandle} from 'react-native';
import {runOnJS} from 'react-native-reanimated';
import {Gesture, GestureDetector} from 'react-native-gesture-handler';
import _ from 'underscore';
Expand Down Expand Up @@ -646,7 +646,6 @@ function ReportActionCompose({
);

const onSelectionChange = useCallback((e) => {
LayoutAnimation.configureNext(LayoutAnimation.create(50, LayoutAnimation.Types.easeInEaseOut, LayoutAnimation.Properties.opacity));
setSelection(e.nativeEvent.selection);
}, []);

Expand Down

0 comments on commit 7a86d28

Please sign in to comment.