React-native-modal-datetime-picker: Warning: DatePickerIOS has been merged with DatePickerAndroid and will be removed in a future release. It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'.

Created on 2 Mar 2020  路  3Comments  路  Source: mmazzarolo/react-native-modal-datetime-picker


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

Environment


react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5

Platforms


iOS

Reproducible Demo




import DateTimePicker from 'react-native-modal-datetime-picker'

<DateTimePicker isVisible={isDateTimePickerVisible} onConfirm={handleDatePicked} onCancel={hideDateTimePicker} />

bug

Most helpful comment

You need to update manually (uninstall & install) the version 8.5.1

All 3 comments

You need to update manually (uninstall & install) the version 8.5.1

@pankajguptablueivory you should install the latest version (> v8)

@Dyshay @mmazzarolo thanks worked :)

Was this page helpful?
0 / 5 - 0 ratings