This is our open source demo application for React Native. You may re-use any code in your own project(s).
Install required node modules with $ npm install
.
-
Go to
ios/
and open the.xcodeproj
project in Xcode. -
Download the latest SDK.
-
Drag-and-drop
KiipSDK.framework
into the root folder of the project. -
Link the Following Frameworks in Your Project
- CoreTelephony
- QuartzCore
- SystemConfiguration
- AdSupport
- MediaPlayer
- AVFoundation
- CoreMotion
- GLKit
- KIIPMoatMobileAppKit
- XIDLibrary
-
Initialize and add your Kiip SDK key and secret into the
AppDelegate.m
file (refer the sample project).
- Open the project from the
android/
directory and go to your app | build.gradle to add the Kiip dependency.
dependencies {
compile "me.kiip.sdk:kiip:3.0.0"
}
- Do a Gradle sync and the project will automatically import the latest version of Kiip SDK via JCenter
- Initialize and add your SDK key and secret into your
MainApplication.java
file
- This demo app is built over
react-native-cli
.
$ npm install -g react-native-cli
$ react-native init YourApp
$ cd YourApp/
Your ios/
and android/
directories are now setup to integrate native modules from the Kiip SDK.