This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 55).
@react-native-community/datetimepicker
一个提供访问系统日期和时间选择界面的组件。
Android
iOS
Included in Expo Go
For the complete documentation index, see llms.txt. Use this Use this file to discover all available pages.
一个提供访问系统 UI 以选择日期和时间的组件。
安装
Terminal
- npx expo install @react-native-community/datetimepickerIf 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 及其使用方式的完整信息。