fix: enable category scrolling for small screen size
This commit is contained in:
parent
ca5716a6f8
commit
6cf12b1117
|
@ -102,7 +102,7 @@ export const Categories = ({ flatListRef, scrollNav }: CategoriesProps) => {
|
|||
keyExtractor={(item) => item.category}
|
||||
renderItem={rendarItem}
|
||||
ItemSeparatorComponent={() => <View style={styles.separator} />}
|
||||
scrollEnabled={false}
|
||||
showsHorizontalScrollIndicator={false}
|
||||
horizontal={true}
|
||||
onScrollToIndexFailed={onCategoryChangeFailed}
|
||||
ListHeaderComponent={activeIndicator}
|
||||
|
|
|
@ -62,6 +62,7 @@ export const EmojiStaticKeyboard = () => {
|
|||
.map((group) => group.data)
|
||||
.flat()
|
||||
.filter((emoji) => {
|
||||
if (searchPhrase && searchPhrase.length < 2) return false;
|
||||
return emoji.name.toLowerCase().includes(searchPhrase.toLowerCase());
|
||||
}),
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue