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