react-native-screens
provides native primitives to represent screens instead of plain <View>
components in order to better take advantage of operating system behavior and optimizations around screens. Used by library authors, unlikely to be used directly by most app developers.Note: this library is still in alpha. Please refer to the issue tracker if you encounter any problems.
Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
---|---|---|---|---|
expo install react-native-screens
If you're installing this in a bare React Native app, you should also follow these additional installation instructions.
react-native-screens
with react-navigation
, you will need to enable it before rendering any screens. Add the following code to your main application file (e.g. App.js):import { enableScreens } from 'react-native-screens'; enableScreens();