首页指南参考教程
This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 51).

Picker

A cross-platform component that provides access to the system UI for picking between several options.

Android
iOS
macOS
Web

This library is listed in the Expo SDK reference because it is included in Expo Go. You may use any library of your choice with development builds.

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 (bare workflow), start by installing expo in your project. Then, follow the additional instructions as mentioned by library's README under "Installation in bare React Native projects" section.

Usage

See complete documentation at react-native-picker/picker.

Expo 中文网 - 粤ICP备13048890号