3.1.0 • Published 6 years ago
react-native-narratiive v3.1.0
react-native-narratiive
Getting started
yarn add react-native-narratiive
react-native link react-native-narratiive # not needed for react-native >= 0.60.0or if you're using npm
npm install react-native-narratiive --save
react-native link react-native-narratiive # not needed for react-native >= 0.60.0iOS
This will not add the library (libEmTracker.a) to your project. So you will have to add it manually. Also add library search path to target
Manual install
iOS Install
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-narratiiveand addRNNarratiive.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNNarratiive.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)
Android Install
Open up
android/app/src/main/java/[...]/MainApplication.java- Add
import com.reactnative.narratiive.RNNarratiivePackage;to the imports at the top of the file - Add
new RNNarratiivePackage()to the list returned by thegetPackages()method
- Add
Append the following lines to
android/settings.gradle:include ':react-native-narratiive' project(':react-native-narratiive').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-narratiive/android')Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-narratiive')