react-native-auto-start-helper
v1.0.5
Published
## Getting started
Downloads
6
Readme
com.phongnguyen93-auto-start-helper
Getting started
$ npm install com.phongnguyen93-auto-start-helper --save
Mostly automatic installation
$ react-native link com.phongnguyen93-auto-start-helper
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜com.phongnguyen93-auto-start-helper
and addRNAutoStartHelper.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNAutoStartHelper.a
to 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.RNAutoStartHelperPackage;
to the imports at the top of the file - Add
new RNAutoStartHelperPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':com.phongnguyen93-auto-start-helper' project(':com.phongnguyen93-auto-start-helper').projectDir = new File(rootProject.projectDir, '../node_modules/com.phongnguyen93-auto-start-helper/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':com.phongnguyen93-auto-start-helper')
Windows
- In Visual Studio add the
RNAutoStartHelper.sln
innode_modules/com.phongnguyen93-auto-start-helper/windows/RNAutoStartHelper.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Auto.Start.Helper.RNAutoStartHelper;
to the usings at the top of the file - Add
new RNAutoStartHelperPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNAutoStartHelper from 'com.phongnguyen93-auto-start-helper';
// TODO: What to do with the module?
RNAutoStartHelper;