1.1.3 • Published 6 years ago
pulsate-react-native-sdk v1.1.3
pulsate-react-native-sdk
Getting started
$ npm install pulsate-react-native-sdk --save
Mostly automatic installation
$ react-native link pulsate-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
➜pulsate-react-native-sdk
and addRNPulsateSdkReact.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNPulsateSdkReact.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.RNPulsateSdkReactPackage;
to the imports at the top of the file - Add
new RNPulsateSdkReactPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':pulsate-react-native-sdk' project(':pulsate-react-native-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/pulsate-react-native-sdk/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':pulsate-react-native-sdk')
Windows
- In Visual Studio add the
RNPulsateSdkReact.sln
innode_modules/pulsate-react-native-sdk/windows/RNPulsateSdkReact.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Pulsate.Sdk.React.RNPulsateSdkReact;
to the usings at the top of the file - Add
new RNPulsateSdkReactPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNPulsateSdkReact from 'pulsate-react-native-sdk';
// TODO: What to do with the module?
RNPulsateSdkReact;