Hi i am using import DatePicker from 'react-native-datepicker' this date picker but getting This error.it worked few year ago but not working .this issue getting only in andird ios .is working fine
ERROR Invariant Violation: DatePickerAndroid has been removed from React Native. It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. js engine: hermes
while importing from @react-native-community/datetimepicker this now text coming directliy coming popup window.. this somting like below window kindly help me out


Jerald Jayaraj DPosted Jul 18, 2023, 7:48 AM
yes i followed steps textbox not coimg and calendaer pop uping without click
Deepak RawatPosted Jul 18, 2023, 7:40 AM
The error message suggests that the
DatePickerAndroidmodule has been removed from React Native and should be installed and imported from@react-native-community/datetimepickerinstead of thereact-nativepackage.To resolve this issue, you can follow these steps:
@react-native-community/datetimepickerpackage:Import the DatePicker component: Update your import statement for the DatePicker component to import from
@react-native-community/datetimepickerinstead ofreact-native-datepicker. Modify your import statement to the following:Update your code: Replace the usage of the DatePicker component in your code with the updated component from
@react-native-community/datetimepicker.Make sure to rebuild your app: After making the changes, rebuild your React Native app to ensure that the changes are reflected correctly.
Now you should be able to resolve the error related to the DatePicker component and successfully use the
@react-native-community/datetimepickerpackage in your React Native project.