@dayzz/react-native-neura-integration
v2.1.6
Published
React native neura sdk integration
Downloads
1
Readme
react-native-neura-integration
Getting started
Follow the instructions to install the SDK for
$ npm install bitbucket:dayzz/react-native-neura-integration --save
Mostly automatic installation
$ react-native link react-native-neura-integration
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-neura-integration
and addRNNeuraIntegration.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNNeuraIntegration.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.dayzzpublic.neuraintegration.RNNeuraIntegrationPackage;
to the imports at the top of the file - Add
new RNNeuraIntegrationPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-neura-integration' project(':react-native-neura-integration').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-neura-integration/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-neura-integration')
Usage
import RNNeuraIntegration from 'react-native-neura-integration';
// TODO: What to do with the module?
RNNeuraIntegration;