adjustments
This commit is contained in:
@@ -82,11 +82,4 @@ const styles = StyleSheet.create({
|
|||||||
width: 80,
|
width: 80,
|
||||||
marginHorizontal: 5,
|
marginHorizontal: 5,
|
||||||
},
|
},
|
||||||
flatListOuter: {
|
|
||||||
height: 100,
|
|
||||||
},
|
|
||||||
flatListContainer: {
|
|
||||||
paddingLeft: 40,
|
|
||||||
paddingRight: 40,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -334,9 +334,13 @@ function Items({type}: {type: 'emojis' | 'colors'}) {
|
|||||||
data={type === 'colors' ? colors : emojiNames}
|
data={type === 'colors' ? colors : emojiNames}
|
||||||
renderItem={type === 'colors' ? colorRenderItem : emojiRenderItem}
|
renderItem={type === 'colors' ? colorRenderItem : emojiRenderItem}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
{...commonFlatListProps}
|
|
||||||
onLayout={onLayout}
|
onLayout={onLayout}
|
||||||
onContentSizeChange={onContentSizeChanged}
|
onContentSizeChange={onContentSizeChanged}
|
||||||
|
style={[isTabletOrDesktop && {marginHorizontal: 10}]}
|
||||||
|
contentContainerStyle={
|
||||||
|
!isTabletOrDesktop ? styles.flatListContainer : undefined
|
||||||
|
}
|
||||||
|
{...commonFlatListProps}
|
||||||
/>
|
/>
|
||||||
{isTabletOrDesktop && (
|
{isTabletOrDesktop && (
|
||||||
<Pressable
|
<Pressable
|
||||||
|
|||||||
Reference in New Issue
Block a user