This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

@react-native-picker/picker

一个跨平台组件,提供对系统 UI 的访问,以便在多个选项之间进行选择。

Android
iOS
macOS
Web
Included in Expo Go
Recommended version:
2.11.4

重要 @expo/ui 提供了一个可直接替换 @react-native-picker/picker 的方案,在 Android 上由 Jetpack Compose 提供支持,在 iOS 上由 SwiftUI 提供支持。

提供对系统 UI 的访问以在多个选项之间进行选择的组件。

🌐 A component that provides access to the system UI for picking between several options.

安装

🌐 Installation

Terminal
npx expo install @react-native-picker/picker

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 及其使用的完整信息。