Add react-native-datetimepicker module to Expo
complete
Jonathan Schellack
React-native-datetimepicker was recently released as a react-native-community project.
It would be good to be able to use it via Expo (since otherwise we have to eject to use it). This cross-platform datetime picker is meant to consolidate the RN DatePickerIOS, DatePickerAndroid and TimePickerAndroid modules and to spin those out of RN core as part of the ongoing lean core initiative, so expect those core pickers to be deprecated in the future.
Brent Vatne
complete
this is now in sdk 36
u
ur-ex
Brent Vatne: Thanks.. Does this support for Web?
Brent Vatne
in progress
Sébastien Lorber
Brent Vatne: great to see this in progress :)
An interesting thing could be to allow passing theme colors to the picker on android. Afaik it's only possible through xml theme files so it can probably only be done as a static configuration in app.json. See also https://expo.canny.io/feature-requests/p/customize-android-apptheme
Sébastien Lorber
Also it would be great if we were able to customize the android theme color. Currently without ejecting we get the time picker being styled with Expo theme.
Willy Rosa Huanca
I use this one and works perfect in both platforms
"react-native-modal-datetime-picker": "^6.0.0"
Brent Vatne
planned
Martyn Henderson
Brent Vatne: When is this planned to drop?
Brent Vatne
Martyn Henderson: should be in sdk36 https://github.com/expo/expo/issues/4691
Brent Vatne
you can continue using the underlying apis in sdk33 and sdk34, but we'll include this in the future!