0.1.27 • Published 2 years ago
ay-inai-react-native-sdk v0.1.27
react-native-inai-sdk
Getting started
$ npm install ay-inai-react-native-sdk --save
Mostly automatic installation
$ react-native link ay-inai-react-native-sdk
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-inai-sdk
and addRNInaiSdk.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNInaiSdk.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.RNInaiSdkPackage;
to the imports at the top of the file - Add
new RNInaiSdkPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-inai-sdk' project(':react-native-inai-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-inai-sdk/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-inai-sdk')
Usage
import InaiCheckout from 'react-native-inai-sdk';
// TODO: What to do with the module?
InaiCheckout;
0.1.27
2 years ago
0.1.25
2 years ago
0.1.24
2 years ago
0.1.23
2 years ago
0.1.22
2 years ago
0.1.21
2 years ago
0.1.19
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.14
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago