1.1.39 • Published 2 years ago
react-native-ondemand-sdk v1.1.39
react-native-ondemand-sdk
Getting started
$ npm install react-native-ondemand-sdk --save
Mostly automatic installation
$ react-native link react-native-ondemand-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-ondemand-sdk
and addRNOndemandSdk.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNOndemandSdk.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.reactlibrary.RNOndemandSdkPackage;
to the imports at the top of the file - Add
new RNOndemandSdkPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-ondemand-sdk' project(':react-native-ondemand-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-ondemand-sdk/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-ondemand-sdk')
Windows
- In Visual Studio add the
RNOndemandSdk.sln
innode_modules/react-native-ondemand-sdk/windows/RNOndemandSdk.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Ondemand.Sdk.RNOndemandSdk;
to the usings at the top of the file - Add
new RNOndemandSdkPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNOndemandSdk from 'react-native-ondemand-sdk';
// TODO: What to do with the module?
RNOndemandSdk;
1.1.29
2 years ago
1.1.28
2 years ago
1.1.30
2 years ago
1.1.34
2 years ago
1.1.33
2 years ago
1.1.32
2 years ago
1.1.31
2 years ago
1.1.38
2 years ago
1.1.37
2 years ago
1.1.36
2 years ago
1.1.35
2 years ago
1.1.39
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.12
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.16
2 years ago
1.1.15
2 years ago
1.1.14
2 years ago
1.1.13
2 years ago
1.1.19
2 years ago
1.1.18
2 years ago
1.1.17
2 years ago
1.1.23
2 years ago
1.1.22
2 years ago
1.1.21
2 years ago
1.1.20
2 years ago
1.1.27
2 years ago
1.1.26
2 years ago
1.1.25
2 years ago
1.1.24
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago