react-native-screens aims to expose native navigation container components to React Native. It is not designed to be used as a standalone library but rather as a dependency of a full-featured navigation library.
Installation
- Add the JavaScript library dependency in the
package.jsonfile. Select the tab for your React Native version.
- React Native 0.72
- React Native 0.83
- Reinstall npm packages using the
npm installcommand.
Examples
This example creates a demo app with four identical screens. Each screen shows its number and lets you navigate to any of the four screens or go back. The example builds screens withreact-navigation. To run this demo, you need to install the following navigation dependencies in package.json:
API reference
Components
Implementation details
The following component props aren’t supported (most are iOS/Android specific):customAnimationOnSwipefullScreenSwipeEnabledgestureEnabledgestureResponseDistancehideKeyboardOnSwipehomeIndicatorHiddennativeBackButtonDismissalEnablednavigationBarColornavigationBarHiddenonHeaderBackButtonClickedonNativeDismissCancelledpreventNativeDismissreplaceAnimationscreenOrientationsheetAllowedDetentssheetExpandsWhenScrolledToEdgesheetCornerRadiussheetGrabberVisiblesheetLargestUndimmedDetentstackAnimation(onlyfadeandnoneanimations are supported)stackPresentationstatusBarAnimationstatusBarColorstatusBarHiddenstatusBarStylestatusBarTranslucentswipeDirectiontransitionDuration- and other header components (,
ScreenStackHeaderRightView, , ) aren’t supported

