0.1.27 • Published 3 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
3 years ago
0.1.25
3 years ago
0.1.24
3 years ago
0.1.23
3 years ago
0.1.22
3 years ago
0.1.21
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.17
3 years ago
0.1.16
3 years ago
0.1.15
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago