react-native-month-year-date-picker
v0.2.1
Published
month year picker library based for iOS and androidOS with native support
Downloads
24
Readme
react-native-month-year-date-picker
month year picker library based for iOS and androidOS with native support
Installation
npm install react-native-month-year-date-picker
Images
| UI Mode | Android | iOS | | ----------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------ | | Light | | | | Dark | | |
Usage
import { MonthYearDatePickerView } from 'react-native-month-year-date-picker';
ShowPicker to initialize
MonthYearDatePickerView.showPicker((result: {
monthName: string;
monthNumber: number;
year: number;
}) => {
// Your code you want to add
});
Get Picker Value with Callback
MonthYearDatePickerView.getPickerValue(
(result: { monthName: string; monthNumber: number; year: number }) => {
console.log('Selected', result);
// Your code you want to add
}
);
Set Picker Value(args1: Month(Oct: 10, sept:9, etc), args2: year(2024, 2093, 1996, etc))
MonthYearDatePickerView.setPicker(10, 2029);
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library