react-native-screens
一个提供原生基元来表示屏幕的库,以实现更好的操作系统行为和屏幕优化。
react-native-screens
提供原生原语来表示屏幕,而不是普通的 <View>
组件,以便更好地利用操作系统行为和屏幕周围的优化。此功能由库作者使用,大多数应用开发者不太可能直接使用。它还提供了 React Navigation 的 createNativeStackNavigator
所需的原生组件。
¥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
-
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
获取有关 API 及其用法的完整信息。