handle insets are null

This commit is contained in:
ammarahm-ed
2020-11-01 14:58:21 +05:00
parent 53ecb6775f
commit 55c1049c8f
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ export const Container = ({children, root}) => {
<SafeAreaView <SafeAreaView
style={{ style={{
height: '100%', height: '100%',
paddingTop: initialWindowMetrics.insets.top, paddingTop: initialWindowMetrics.insets.top || 0,
}}> }}>
<SelectionHeader /> <SelectionHeader />
<ContainerTopSection root={root} /> <ContainerTopSection root={root} />

View File

@@ -204,8 +204,8 @@ const SimpleList = ({
? 130 ? 130
: 130 - 60 : 130 - 60
: listData[0] && !selectionMode : listData[0] && !selectionMode
? 155 - initialWindowMetrics.insets.top ? 155 - initialWindowMetrics?.insets?.top
: (155 - initialWindowMetrics.insets.top) - 60, : (155 - initialWindowMetrics?.insets?.top) - 60,
}; };
}, [selectionMode, listData, colors]); }, [selectionMode, listData, colors]);