This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 57).
react-native-screens
一个提供原生基础组件以表示屏幕的库,从而获得更好的操作系统行为和屏幕优化。
Android
iOS
tvOS
Web
Included in Expo Go
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 及其用法的完整信息。