react-native-screens library exposes native navigation container components to React Native. This library isn’t a standalone library, but it’s a dependency of a full-featured navigation library.
Installation
-
Add the dependency in the
package.jsonfile: -
Reinstall npm packages using the
npm installcommand.
Examples
API reference
Components
Disabling react-native-screens
To disable native screens support and use plain React Native Views, add the following code in your entry file (App.js):Known issues and limitations
The following component props aren’t supported (most are iOS/Android specific):customAnimationOnSwipefullScreenSwipeEnabledgestureEnabledgestureResponseDistancehideKeyboardOnSwipehomeIndicatorHiddennativeBackButtonDismissalEnablednavigationBarColornavigationBarHiddenonHeaderBackButtonClickedonNativeDismissCancelledpreventNativeDismissreplaceAnimationscreenOrientationsheetAllowedDetentssheetExpandsWhenScrolledToEdgesheetCornerRadiussheetGrabberVisiblesheetLargestUndimmedDetentstackAnimation(only fade animation is supported)stackPresentationstatusBarAnimationstatusBarColorstatusBarHiddenstatusBarStylestatusBarTranslucentswipeDirectiontransitionDuration- and other header components (,
ScreenStackHeaderRightView, , ) aren’t supported

