Jalali date picker for React Native both platform (Android and iOS)
npm install react-native-jalali-date @react-native-picker/picker
yarn add react-native-jalali-date @react-native-picker/picker
Usage example
import Picker from 'react-native-jalali-date';
const [selectedDate, setSelectedDate] = useState({
year: 1372,
month: 3,
day: 12,
});
<Picker
minDate={{
year: 1369,
month: 8,
day: 29,
}}
initDate={selectedDate}
maxDate="TODAY"
onChange={(result) => {
console.log(result);
setSelectedDate(result);
}}
/>;
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library