eaze-location-background-timer
v1.0.32
Published
## Getting started
Keywords
Readme
eaze-location-background-timer
Getting started
$ npm install eaze-location-background-timer --save
Mostly automatic installation
$ react-native link eaze-location-background-timer
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜eaze-location-background-timerand addRNLocationBackgroundTimer.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNLocationBackgroundTimer.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.RNLocationBackgroundTimerPackage;to the imports at the top of the file - Add
new RNLocationBackgroundTimerPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':eaze-location-background-timer' project(':eaze-location-background-timer').projectDir = new File(rootProject.projectDir, '../node_modules/eaze-location-background-timer/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':eaze-location-background-timer')
Windows
- In Visual Studio add the
RNLocationBackgroundTimer.slninnode_modules/eaze-location-background-timer/windows/RNLocationBackgroundTimer.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Cl.Json.RNLocationBackgroundTimer;to the usings at the top of the file - Add
new RNLocationBackgroundTimerPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNLocationBackgroundTimer from 'eaze-location-background-timer';
// TODO: What do with the module?
RNLocationBackgroundTimer;