# react-native-jalali-date

> Lightweight Jalali (Persian / Shamsi) wheel date picker for React Native on Android and iOS

Latest version **1.0.1** (published 2023-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-jalali-date
pnpm add react-native-jalali-date
yarn add react-native-jalali-date
bun add react-native-jalali-date
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-01-17 |
| First published | 2022-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mohamad Navabi |
| Maintainers | navabi |
| Keywords | react-native, ios, android, jalali, persian, shamsi, date-picker, wheel-picker |

## Links

- npm: https://www.npmjs.com/package/react-native-jalali-date
- Repository: https://github.com/mohamadnavabi/react-native-jalali-datepicker
- Homepage: https://github.com/mohamadnavabi/react-native-jalali-datepicker#readme
- Issues: https://github.com/mohamadnavabi/react-native-jalali-datepicker/issues
- npm.io page: https://npm.io/package/react-native-jalali-date

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-01-17
- 1.0.0 — 2023-01-17
- 0.3.0 — 2023-01-04
- 0.2.16 — 2023-01-04
- 0.2.15 — 2022-12-26
- 0.2.14 — 2022-12-26
- 0.2.13 — 2022-12-26
- 0.2.12 — 2022-12-26
- 0.2.11 — 2022-12-19
- 0.2.10 — 2022-12-14
- 0.2.9 — 2022-12-14
- 0.2.8 — 2022-12-14
- 0.2.7 — 2022-12-14
- 0.2.6 — 2022-11-07

## README

# react-native-jalali-date

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

<p align="center">
  <img src="https://github.com/mohamadnavabi/react-native-jalali-datepicker/blob/master/example/Android.png" width="300" max-width="300" title="Android example">
  <img src="https://github.com/mohamadnavabi/react-native-jalali-datepicker/blob/master/example/iOS.png" width="250" max-width="300" alt="iOS example">
</p>

## Installation

```sh
npm install react-native-jalali-date @react-native-picker/picker
```

```sh
yarn add react-native-jalali-date @react-native-picker/picker
```

## Usage

Usage [example](https://github.com/mohamadnavabi/react-native-jalali-datepicker/blob/master/example/src/App.tsx)

```js
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](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)

---
_Source: https://npm.io/package/react-native-jalali-date · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
