aurora-imui-cp
v0.1.10
Published
aurora imui plugin for react native application
Downloads
4
Readme
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-cp
and addRNReactNativePushLive.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNReactNativePushLive.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.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.sln
innode_modules/aurora-imui-cp/windows/RNReactNativePushLive.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using React.Native.Push.Live.RNReactNativePushLive;
to the usings at the top of the file - Add
new RNReactNativePushLivePackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNReactNativePushLive from "aurora-imui-cp";
// TODO: What to do with the module?
RNReactNativePushLive;