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