adjustments

This commit is contained in:
Hailey
2024-02-14 18:57:08 -08:00
parent 0efb5a1523
commit 0b7d66281b
2 changed files with 5 additions and 8 deletions
@@ -82,11 +82,4 @@ const styles = StyleSheet.create({
width: 80,
marginHorizontal: 5,
},
flatListOuter: {
height: 100,
},
flatListContainer: {
paddingLeft: 40,
paddingRight: 40,
},
})
+5 -1
View File
@@ -334,9 +334,13 @@ function Items({type}: {type: 'emojis' | 'colors'}) {
data={type === 'colors' ? colors : emojiNames}
renderItem={type === 'colors' ? colorRenderItem : emojiRenderItem}
ref={ref}
{...commonFlatListProps}
onLayout={onLayout}
onContentSizeChange={onContentSizeChanged}
style={[isTabletOrDesktop && {marginHorizontal: 10}]}
contentContainerStyle={
!isTabletOrDesktop ? styles.flatListContainer : undefined
}
{...commonFlatListProps}
/>
{isTabletOrDesktop && (
<Pressable