mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
handle insets are null
This commit is contained in:
@@ -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} />
|
||||||
|
|||||||
@@ -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]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user