pandiaraj44 / react-native-datepicker-dialog

This library provides the cross-platform components for to open the date picker dialogs in effective way. It uses the native DatePickerAndroid & DatePickerIOS components. It will work for both ios & android.
MIT License
44 stars 15 forks source link

open is not working on ios #1

Closed sibelius closed 7 years ago

sibelius commented 7 years ago

I've tried to use this library on RN42 and open will not working on iOS.

I haven't tested on android yet

pandiaraj44 commented 7 years ago

Hi Sibelius, We will check it and let you know!

mattathias commented 7 years ago

Ran into the same issue, any update? From my debugging it seems to be related to the assignment of the refs.

pandiaraj44 commented 7 years ago

Hi, @mattathias Have you tried out the example? When opening the datepicker dialog you need to pass the date object. If you didn't then datepicker will not be shown.

this.refs.dobDialog.open({
      date: new Date(), //Any date
});
mattathias commented 7 years ago

Yes I did, I followed the example exactly

pandiaraj44 commented 7 years ago

@mattathias Can you please send us the error logs?

pandiaraj44 commented 7 years ago

Hi, @mattathias

Please let us know if you are still facing the same issue. We need more info on how you handled the onPress event of the date picker.

As for now, I'm going to close this issue.

You may reopen this issue at any time.