as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
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

  1. Add the JavaScript library dependency in the package.json file. Select the tab for your React Native version.
  1. Reinstall npm packages using the npm install command.

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 with react-navigation. To run this demo, you need to install the following navigation dependencies in package.json:

API reference

Components

React Native for Vega uses react-native-screens to add support for native screens and supports the same APIs as react-native-screens apis. iOS, Android, and Windows-specific props aren’t supported.

Implementation details

The following component props aren’t supported (most are iOS/Android specific):
  • customAnimationOnSwipe
  • fullScreenSwipeEnabled
  • gestureEnabled
  • gestureResponseDistance
  • hideKeyboardOnSwipe
  • homeIndicatorHidden
  • nativeBackButtonDismissalEnabled
  • navigationBarColor
  • navigationBarHidden
  • onHeaderBackButtonClicked
  • onNativeDismissCancelled
  • preventNativeDismiss
  • replaceAnimation
  • screenOrientation
  • sheetAllowedDetents
  • sheetExpandsWhenScrolledToEdge
  • sheetCornerRadius
  • sheetGrabberVisible
  • sheetLargestUndimmedDetent
  • stackAnimation (only fade and none animations are supported)
  • stackPresentation
  • statusBarAnimation
  • statusBarColor
  • statusBarHidden
  • statusBarStyle
  • statusBarTranslucent
  • swipeDirection
  • transitionDuration
  • and other header components (, ScreenStackHeaderRightView, , ) aren’t supported

Disabling react-native-screens

If you’d like to disable native screens support and use plain React Native Views add the following code in your entry file (App.js):

Additional resources

For information on other libraries, see Supported Third-Party Libraries and Services.
最后修改于 2026年7月21日