react-native-screen-views
#
Installation#
API#
ScreenSafeAreaViewLike SafeAreaView
from react-native-safe-area-context
but without the top
edge. For use in
react-navigation screens.
#
KeyboardScreenSafeAreaViewLike ScreenSafeAreaView
but can provide different edges when keyboard is open. Defaults to left
and right
.
#
ScreenKeyboardAvoidingViewKeyboard avoiding view that takes into account the height of the react-navigation stack header.
Defaults to flex: 1
for convenience. Uses padding
on iOS and height
on Android.
Note: The value of useHeaderHeight
from @react-navigation/stack
must be correct. That means
the header height must be set according to react-navigation docs.