react-native-paper-dates icon indicating copy to clipboard operation
react-native-paper-dates copied to clipboard

I'd like also the possibility to select only month and year.

Open Erns opened this issue 4 years ago • 4 comments

I'd like also the possibility to select only month and year.

It's a common use case to select just the month and the year.

Originally posted by @francesco-clementi-92 in https://github.com/web-ridge/react-native-paper-dates/issues/80#issuecomment-869005131

Erns avatar Jun 30 '21 17:06 Erns

I don't have this use-case myself so I won't built it myself. There's als not written something about this picker in the Material Design specification, maybe we can lookup some example of a Google app who does this and screenshot te layout for inspiration if there is a good looking someone can pick it up to create a PR but I think we first need to decide on a layout.

RichardLindhout avatar Jul 01 '21 07:07 RichardLindhout

Hi @RichardLindhout, I think we can refer to this guidelines: https://material-ui-pickers.dev/demo/datepicker#different-views.

The site is a little bit outdated, but even the new version https://next.material-ui.com/components/date-picker/ is pretty much the same (can't find an example)

francesco-clementi-92 avatar Jul 01 '21 07:07 francesco-clementi-92

Looking good! I'll accept a PR which adds this component

  • Uses Intl for the month names
  • Uses FlatList for year
  • Uses Flatlist for month grid

RichardLindhout avatar Jul 01 '21 08:07 RichardLindhout

How to use this feature? thanks you so much.

nguyenhoa072 avatar Sep 30 '22 07:09 nguyenhoa072