question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TimePickerAndroid has been removed from React Native

See original GitHub issue

Issue

The date picker will not show up anymore. In debug mode it gives the error:

DatePickerAndroid has been merged with DatePickerIOS and will be removed in a future release. It can now be installed and imported from ‘@react-native-community/datetimepicker’ instead of ‘react-native’

Expected Behavior

The date picker shows up

Code


Environment

  1. react-native -v: 0.62.0
  2. node -v: 12.8.0
  3. npm -v: 6.10.3
  4. yarn --version: 1.17.0-20190429.1820
  5. target platform: Android
  6. operating system: Mac

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:11
  • Comments:21

github_iconTop GitHub Comments

12reactions
Rejsalcommented, Jun 10, 2020

I have forked and updated to use @react-native-community/datetimepicker for modes: date and time. Not updated for mode datetime. Let me know if it is not working. https://github.com/Rejsal/react-native-datepicker

8reactions
mehrankhandevcommented, Nov 5, 2020

if you still using this library like me and need “datetime” support i have forked the library . please try this https://github.com/mehrankhandev/react-native-datepicker

Note: you have to install @react-native-community/datetimepicker first

Read more comments on GitHub >

github_iconTop Results From Across the Web

Picker has been removed from React Native. It can now be ...
I have search the entire project which DOES NOT use Pricker at all but when I run npx react-native run-android it throws out...
Read more >
DatePickerAndroid - React Native
DatePickerAndroid has been merged with DatePickerIOS and TimePickerAndroid into a single component called DateTimePicker and will be removed ...
Read more >
react-native-community/datetimepicker - npm
React Native DateTimePicker. This repository was moved out of the react native community GH organization, in accordance to this proposal.
Read more >
react-native-datepicker | Yarn - Package Manager
React Native DatePicker component for both Android and iOS, useing DatePickerAndroid, TimePickerAndroid and DatePickerIOS. react-native, DatePicker ...
Read more >
To Pick the Date using Native Calendar - About React
If you have previously installed a global react-native-cli package, please remove it as it may cause unexpected issues: npm uninstall -g react-native-cli ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found