# react-native-notag-datepicker

> React Native NoTag Datepicker

Latest version **0.0.1** (published 2017-12-17) · 0 weekly downloads

## Install

```sh
npm install react-native-notag-datepicker
pnpm add react-native-notag-datepicker
yarn add react-native-notag-datepicker
bun add react-native-notag-datepicker
```

## 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.1 |
| Published | 2017-12-17 |
| First published | 2017-12-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Phodal Huang |
| Maintainers | phodal |

## Links

- npm: https://www.npmjs.com/package/react-native-notag-datepicker
- npm.io page: https://npm.io/package/react-native-notag-datepicker

## Recent versions

- 0.0.1 (latest) — 2017-12-17

## README

React Native DatePicker
---

> A React Native DatePicker without Tag

based on: [Cordova DatePicker Plugin](https://github.com/VitaliiBlagodir/cordova-plugin-datepicker)

origin ios [https://github.com/sectore/phonegap3-ios-datepicker-plugin](https://github.com/sectore/phonegap3-ios-datepicker-plugin)

example code

```
import {
  NativeEventEmitter,
  NativeModules
} from 'react-native';

const DatePickerHandler = {};
const RNNoTagDatepicker = NativeModules.RNNoTagDatepicker;

const DatePickerEvent = new NativeEventEmitter(NativeModules.RNNoTagDatepicker);

DatePickerEvent.addListener('DATEPICKER_NATIVE_INVOKE', (evt: Event) => {
if(evt.status === 'success') {
  const toMSUnit = parseFloat(evt.value) * 1000;
  const date =  new Date(toMSUnit);
  webView.postMessage(JSON.stringify({
    type: 'DATE_PICKER',
    success: true,
    date
  }));
}
});

const showPicker = async (options) => {
  RNNoTagDatepicker.show(options);
};

showPicker({
  date: payload.date,
  maxDate: payload.maxDate,
});
```

LICENSE
---

MIT

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