UNPKG

rn-nepali-datepicker

Version:
43 lines (31 loc) 822 B
# rn-nepali-datepicker Nepali Datepicker ## Installation ```sh npm install rn-nepali-datepicker ``` ## Usage ```js import React, {useState} from 'react' import {View, Text, StyleSheet} from 'react-native' import DatePicker from "rn-nepali-datepicker"; const MyComponent=()=> { const [date, setDate] = useState('') //.. return( // ... <View> <DatePicker dateFormat='%D, %M %d, %y' onDateChange={(text)=>setDate(text)} selectedDefaultDate='yyyy-mm-dd' fromDate='yyyy-mm-dd' toDate='yyyy-mm-dd' edit={boolean}/> </View> ) } ``` ## Contributing See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. ## License MIT