React-native-modal-datetime-picker: How can I pick year and month only

Created on 3 Aug 2017  路  4Comments  路  Source: mmazzarolo/react-native-modal-datetime-picker

att

question

All 4 comments

Could you provide a bit more info on the issue?
What are you trying to achieve?

Without day like this.....
3c182bcf-bc9a-4649-a119-3943d1bbbe1a
70cc73fa-c2d4-4714-8725-f09ff22d3d0e

This component behind the hood uses react-native's own DatePickerAndroid, TimePickerAndroid and DatePickerIOS.
This means that a feature like the one you're proposing must be supported by both DatePickerAndroid/TimePickerAndroid and DatePickerIOS for being implemented correctly on react-native-modal-datetime-picker.

Do the native picker implementations allow you to show only month and year?

Closing, feel free to create a new issue if needed 馃憤

Also, please be aware that I created the following "new issue template" that, if followed correctly, will speed up a lot the issue resolution:


When reporting a bug, please be sure to check if the issue still persists with react-native original date/time pickers:

Under the hood react-native-modal-datetime-picker react-native original DatePickerAndroid, TimePickerAndroid and DatePickerIOS.
Before reporting a bug, try swapping react-native-datetime-picker with react-native original date/time pickers to check if the problem persists.

When reporting a bug, please be sure to include the following:

  • [ ] The outcome of the react-native-modal-datetime-picker swap described above
  • [ ] A descriptive title
  • [ ] An isolated way to reproduce the behavior (example: GitHub repository with code isolated to the issue that anyone can clone to observe the problem)
  • [ ] What version of react-native-modal-datetime-picker you're using, and the platform(s) you're running it on (iOS, Android, device)
  • [ ] What packages or other dependencies you're using
  • [ ] The behavior you expect to see, and the actual behavior

When you open an issue for a feature request, please add as much detail as possible:

  • [ ] A descriptive title
  • [ ] A description of the problem you're trying to solve, including why you think this is a problem
  • [ ] An overview of the suggested solution
  • [ ] If the feature changes current behavior, reasons why your solution is better

Please note by far the quickest way to get a new feature is to file a Pull Request.

Was this page helpful?
0 / 5 - 0 ratings