1.0.8 • Published 8 years ago
react-native-pushbots-react v1.0.8
react-native-pushbots-react
Getting started
$ npm install react-native-pushbots-react --save
Mostly automatic installation
$ react-native link react-native-pushbots-react
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-pushbots-reactand addRNPushbotsReact.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNPushbotsReact.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.RNPushbotsReactPackage;to the imports at the top of the file - Add
new RNPushbotsReactPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-pushbots-react' project(':react-native-pushbots-react').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pushbots-react/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-pushbots-react')
Windows
- In Visual Studio add the
RNPushbotsReact.slninnode_modules/react-native-pushbots-react/windows/RNPushbotsReact.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Com.Reactlibrary.RNPushbotsReact;to the usings at the top of the file - Add
new RNPushbotsReactPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNPushbotsReact from 'react-native-pushbots-react';
// TODO: What to do with the module?
RNPushbotsReact;