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

Not bring up datepicker #5

Closed mad0ba closed 7 years ago

mad0ba commented 7 years ago

I ran the app but when i try to select the textbox it doesn't open the datepicker. I'm using it for android.

pandiaraj44 commented 7 years ago

Hi @Mardii-D-King ,

Have you called the date picker dialog on textbox OnPress event?

Can you please try out our example and let us know if you are facing the same issue.

mad0ba commented 7 years ago

So i got it to work but not like the example. When i launch the app and click in the text-box a calendar pops up instead of the scroll picker.

mad0ba commented 7 years ago

Nvm i got it to work also.

pandiaraj44 commented 7 years ago

@Mardii-D-King ,

If you want the spinner date picker then you need to pass "mode" key in the options.

The mode options were added in react-native version 42.

Pull Request & Commit Ref https://github.com/facebook/react-native/pull/10932 https://github.com/facebook/react-native/commit/eaccd7e82e228d744e6aef34b332d99c1ff616a5

Docs Ref: http://facebook.github.io/react-native/releases/0.42/docs/datepickerandroid.html#datepickerandroid