1.0.2 • Published 5 years ago
native-nepalidatepicker v1.0.2
native-nepali-datepicker
Getting started
$ npm install native-nepalidatepicker --save
Mostly automatic installation
$ react-native link native-nepalidatepicker
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜native-nepalidatepickerand addRNNativeNepaliDatepicker.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNNativeNepaliDatepicker.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNNativeNepaliDatepickerPackage;to the imports at the top of the file - Add
new RNNativeNepaliDatepickerPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':native-nepalidatepicker' project(':native-nepalidatepicker').projectDir = new File(rootProject.projectDir, '../node_modules/native-nepalidatepicker/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':native-nepalidatepicker')
Windows
- In Visual Studio add the
RNNativeNepaliDatepicker.slninnode_modules/native-nepalidatepicker/windows/RNNativeNepaliDatepicker.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Native.Nepali.Datepicker.RNNativeNepaliDatepicker;to the usings at the top of the file - Add
new RNNativeNepaliDatepickerPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import { DatePicker } from "native-nepalidatepicker";
// TODO: What to do with the module?