fix: enable category scrolling for small screen size

This commit is contained in:
Jakub Grzywacz 2021-07-29 11:44:45 +02:00
parent ca5716a6f8
commit 6cf12b1117
No known key found for this signature in database
GPG Key ID: 5BBB685871FF63C4
2 changed files with 2 additions and 1 deletions

View File

@ -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}

View File

@ -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());
}),
});