react-native-safe-area-context#initialWindowSafeAreaInsets TypeScript Examples
The following examples show how to use
react-native-safe-area-context#initialWindowSafeAreaInsets.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SafeAreaProviderCompat.tsx From nlw2-proffy with MIT License | 6 votes |
initialSafeAreaInsets = {
// Approximate values which are good enough for most cases
top: getStatusBarHeight(true),
bottom: getBottomSpace(),
right: 0,
left: 0,
// If we are on a newer version of the library, we can get the correct window insets
// The component might not be filling the window, but this is good enough for most cases
...initialWindowSafeAreaInsets,
}