Reputation: 11485
I found a bunch of date time picker project on github, none of the work with expo. Or have to react-link which I can't because I'm in expo 100% js. Could be there a usable project somewhere?
Upvotes: 7
Views: 10925
Reputation: 547
Right now they recommend using reaact-native-community/react-native-datetimepicker It works quite well.
installation with
expo install @react-native-community/datetimepicker
Expo themselves don't have a lot in their documentation but you can find it here: expo datetimepicker docs
A very basic usage looks like this:
<DateTimePicker value={date}
mode={mode}
is24Hour={true}
display="default"
onChange={this.setDate} />
You can read a bunch more on this component in the readme file of the official component docs.
Upvotes: 2
Reputation: 1660
react-native-modal-datetime-picker
https://github.com/mmazzarolo/react-native-modal-datetime-picker
You can also find other expo compatible components at https://www.native.directory/
Upvotes: 6