Reference version

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-community/datetimepicker

提供访问系统用户界面以选择日期和时间的组件

Android
iOS
Included in Expo Go
Recommended version:
9.2.1

一个用于访问系统 UI 以选择日期和时间的组件。

安装

Terminal
- npx expo install @react-native-community/datetimepicker
- yarn expo install @react-native-community/datetimepicker
- pnpm expo install @react-native-community/datetimepicker
- bun expo install @react-native-community/datetimepicker

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.

了解更多

访问官方文档

获取有关 API 及其用法的完整信息。