react-native-datepicker
react-native-datepicker copied to clipboard
Problem with useNativeDriver and componentWillReceiveProps
Issue
Two warnings
Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false
and
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
Expected Behavior
Code
<DatePicker
customStyles={{
dateInput: {flexDirection: 'row', borderWidth: 0, justifyContent: 'flex-end', paddingTop: 3},
}}
minDate="2020-10-01"
maxDate={Dates().today}
confirmBtnText="Apply"
cancelBtnText="Close"
onDateChange={date => setDay(new Date(date).toLocaleDateString())}
/>
Environment
react-native -v: 39.0.0node -v: 14.2.0npm -v: 6.14.4target platform: Android and iOSoperating system: mac os
+1
+1
+1
+1
+1 too
+1
+1
@nihil-pro @dnlmzw @MahmutGundogduKizilay @ixez @dibyopra @Wassyk @JoaquinBeceiro @appseugene
try this: https://github.com/xgfe/react-native-datepicker/pull/441/commits/db1b18ecd9dcffdfe6c4668fa15afbcd6041b97b
+1
+1
+1