xgfe / react-native-datepicker

react native datePicker component for both Android and IOS, useing DatePikcerAndroid, TimePickerAndroid and DatePickerIOS
MIT License
2.12k stars 726 forks source link

null initial date on Android #159

Open stereodenis opened 7 years ago

stereodenis commented 7 years ago

null initial date on android throw error: "Cannot read property 'getMonth' of null" from https://github.com/facebook/react-native/blob/master/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js#L22

feyy commented 7 years ago

Could you paste some code here?

guillaumecodet commented 6 years ago

Same error here :( @stereodenis have you find a solution ?

arnsa commented 6 years ago

Same issue :/

pashawowi commented 6 years ago

same issue

sibelius commented 6 years ago

same

rodrigoalmeidaee commented 6 years ago

If it helps, we ran into the same issue (but for endDate) and replacing null with undefined solved it for us.

JoseVf commented 6 years ago

Same issue here


Solved as @rodrigoalmeidaee said 😅

jackharding commented 5 years ago

Still getting this issue. Using undefined as per @rodrigoalmeidaee's suggestion doesn't work for me.