Reference version

react-native-screens

GitHub

npm

A library that provides native primitives to represent screens for better operating system behavior and screen optimizations.

Android
iOS
tvOS
Web
Bundled version:
~4.10.0

react-native-screens provides native primitives to represent screens instead of plain <View> components To better take advantage of operating system behavior and optimizations around screens. This capability is used by library authors and is unlikely to be used directly by most app developers. It also provides the native components needed for React Navigation's createNativeStackNavigator.

Installation

Terminal
npx expo install react-native-screens

If you are installing this in an existing React Native app, make sure to install expo in your project. Then, follow the installation instructions provided in the library's README or documentation.

Learn more

Visit offical documentation

Get full information on API and its usage.