This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 57).
DateTimePicker
Jetpack Compose components for selecting dates, date ranges, and times.
Expo UI's date and time picker components match the official Jetpack Compose Date Picker, Date Range Picker, and Time Picker APIs.
Note: The date variants render Material's calendar grid and input field, both of which scroll horizontally internally. The parent
Hostmust provide a finite width on the horizontal axis, usematchContents={{ vertical: true }}together withstyle={{ width: '100%' }}(or any finite width). See Match contents in Host reference for details.
Note:
DateRangePickeralso scrolls vertically and fills the finite height provided by its parent. Place itsHostin a bounded layout, such as one usingflex: 1. Do not usematchContentson the vertical axis.


Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Date picker
Time picker
Input variant
Use variant="input" to display the picker as a text input field instead of the default picker UI.
Without title and headline
Set showTitle={false} and showHeadline={false} to hide the "Select date" title and the selected-date headline. Use these props when the picker is in a screen or sheet that already has its own heading. The same props are available on DatePickerDialog, DateRangePicker, and DateRangePickerDialog. The following example also sets showVariantToggle={false} to hide the button that toggles between variants, so only the calendar shows.
Date range picker
The callback's end value is null until the user finishes selecting the range.
Date range picker dialog
API
import { DateRangePicker, DateRangePickerDialog, DateTimePicker, } from '@expo/ui/jetpack-compose';
No API data file found, sorry!