Skip to content

sharingapples/react-native-nepali-date-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published