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

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