This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 56).
@react-native-picker/picker
一个跨平台组件,可访问系统 UI,用于在多个选项之间进行选择。
Android
iOS
macOS
Web
Included in Expo Go
For the complete documentation index, see llms.txt. Use this file to discover all available pages.
重要
@expo/ui提供了一个可直接替换的版本,用于@react-native-picker/picker,在 Android 上由 Jetpack Compose 提供支持,在 iOS 上由 SwiftUI 提供支持。
一个用于访问系统 UI、在多个选项之间进行选择的组件。
安装
Terminal
- npx expo install @react-native-picker/pickerIf 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 及其用法的完整信息。