Skip to content

Commit

Permalink
Merge pull request #837 from ephemeraHQ/ar/emoji-dismiss-taps
Browse files Browse the repository at this point in the history
fix: Added handled for persisting taps
  • Loading branch information
alexrisch authored Sep 29, 2024
2 parents c01f640 + c6c9662 commit a46a5d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/EmojiPicker/EmojiRowList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ interface EmojiRowListProps {

const keyExtractor = (_: unknown, index: number) => String(index);

// Works around issue with Android not picking up scrolls
const ListRenderer = Platform.OS === "ios" ? ReanimatedFlashList : FlatList;

export const EmojiRowList: FC<EmojiRowListProps> = ({
emojis,
ListHeader,
Expand All @@ -53,9 +56,6 @@ export const EmojiRowList: FC<EmojiRowListProps> = ({
[onPress]
);

// Works around issue with Android not picking up scrolls
const ListRenderer = Platform.OS === "ios" ? ReanimatedFlashList : FlatList;

const animatedStyle = useAnimatedStyle(() => {
return {
height: height.value,
Expand All @@ -72,6 +72,7 @@ export const EmojiRowList: FC<EmojiRowListProps> = ({
scrollEnabled={emojis.length > 1}
keyExtractor={keyExtractor}
renderItem={renderItem}
keyboardShouldPersistTaps="handled"
ListFooterComponent={() => <View style={styles.bottom} />}
/>
</ReanimatedView>
Expand Down

0 comments on commit a46a5d3

Please sign in to comment.