# react-native-easy-date-picker

> This package will help to pick a single date and multiple dates in react native.

Latest version **0.0.2** (published 2022-05-22) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-05-22 |
| First published | 2022-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 571.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Loganathan Rajamani |
| Maintainers | logan.raja |
| Keywords | datepicker, react, native, multidate, picker, react, calendar |

## Links

- npm: https://www.npmjs.com/package/react-native-easy-date-picker
- Repository: https://github.com/LoganRaja/RNCalendarDatePicker
- Homepage: https://github.com/LoganRaja/RNCalendarDatePicker/blob/master/README.md
- Issues: https://github.com/LoganRaja/RNCalendarDatePicker/issues
- npm.io page: https://npm.io/package/react-native-easy-date-picker

## Dependencies (3)

- [react](https://npm.io/package/react.md) 17.0.2
- [react-native](https://npm.io/package/react-native.md) 0.68.2
- [@react-native-picker/picker](https://npm.io/package/@react-native-picker/picker.md) ^2.4.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2022-05-22
- 0.0.1 — 2022-05-22

## README

# React Native Date Picker

This package will help to pick a single date and multiple dates in react native.

# Attachments
![Screenshot](./screenshots/first.png)  ![Screenshot](./screenshots/second.png)   ![Screenshot](./screenshots/third.png)

## Required Package
```
npm install @react-native-picker/picker --save
```
```
yarn add @react-native-picker/picker
```

Check the link [here](https://github.com/react-native-picker/picker)


## Installation

```
yarn add react-native-easy-date-picker
```

or

```
npm install react-native-easy-date-picker --save
```

## Example


### Code

```js
import React, { useRef } from 'react';
import {
  SafeAreaView,
  View,
  Text
} from 'react-native';
import CalendarDatePicker from 'react-native-easy-date-picker';


const ExampleOne = () => {
  const calendarDatePicker = useRef();

  const getSelectedDates = (selectedDates) => {
    console.log('hello', selectedDates)
  }

  return (
    <SafeAreaView style={{ flex: 1 }}>

      <View
        style={{ flex: 1, alignItems: "center", justifyContent: 'center' }}>
        <Text onPress={() => {
          calendarDatePicker.current.handleShow()
        }}>{'Show Picker'}</Text>

        <CalendarDatePicker
          ref={calendarDatePicker}
          getSelectedDates={getSelectedDates}
          multiSelect={true}
          maxNumOfDateSel={6}
          checkbefToday={true}
        />



      </View>

    </SafeAreaView>
  );
};



export default ExampleOne;

```

Check the code [here](./examples/ExampleOne.js)


## Props

| Prop                            |              Default               |      Type       | Description                                |
| :------------------------------ | :--------------------------------: | :-------------: | :----------------------------------------- |
| ref                             |                                    | `reference`     | used for show hide picker           |
| multiSelect                     |       false                        |`boolean`        | number of item per row                     |
| checkbefToday                   |       false                          |`boolean`      | style of grid item view                    |
| maxNumOfDateSel                 |        -1                           |`number`        | style of entire listview                   |

## Instance Methods
| Method        | Params          | Description      |
| :------------ |:---------------:| :---------------:|
| getSelectedDates | array | return selected dates   |

## Author

Loganathan Rajamani

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