react-native-jalali-date
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-native-jalali-date

Jalali date picker for React Native both platform (Android and iOS)

iOS example

Installation

npm install react-native-jalali-date @react-native-picker/picker
yarn add react-native-jalali-date @react-native-picker/picker

Usage

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);
  }}
/>;

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

Package Sidebar

Install

npm i react-native-jalali-date

Weekly Downloads

15

Version

1.0.1

License

MIT

Unpacked Size

143 kB

Total Files

65

Last publish

Collaborators

  • navabi