react-native-screens
一个提供原生基础组件来表示屏幕的库,以获得更好的操作系统行为和屏幕优化。
Android
iOS
tvOS
Web
Included in Expo Go
For the complete documentation index, see llms.txt. Use this Use this file to discover all available pages.
react-native-screens 提供原生基础组件来表示屏幕,而不是普通的 <View> 组件,以便更好地利用操作系统围绕屏幕的行为和优化。这个能力主要供库作者使用,大多数应用开发者不太会直接用到。它还为 React Navigation 的 createNativeStackNavigator 提供所需的原生组件。
安装
Terminal
- npx expo install react-native-screensIf 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.
了解更多
访问官方文档
获取关于 API 及其用法的完整信息。