react-native-nepali-date-picker

0.1.33 • Public • Published

react-native-nepali-date-picker

Usage

This library is the date picker for nepali calendar. To use import the library as

import React from 'react';
import Calendar from 'react-native-nepali-date-picker'
 
const App = () => (
  <Calendar
  // defaultDateTimeValue
  value={new Date()} // default value
  visibility={true} // set the visibilty of the component
  onSelect={v => console.log(v)} // on each select by the user to a certain date
  onCancel={v => console.log(v)} // on press cancel thought not required
   //as user can handle is still can be useful as it gives you back the value you pass to it
  onChange={v => console.log(v)} // on press ok
  />);
 

The resulting value v for each function call back has property as:

  1. getYear: gives year in number
  2. getMonth: gives Month in number
  3. getDate: gives the date in number

Output

simulator screen shot - iphone x - 2018-10-29 at 16 09 56

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-nepali-date-picker

Weekly Downloads

6

Version

0.1.33

License

UNLICENSED

Unpacked Size

20.9 kB

Total Files

16

Last publish

Collaborators

  • y2z