React Native
React Native Reblaze SDK
The SDK can be used with React Native applications. This SDK comes with an example app which demonstrates such integration. You can use the code of the example to integrate the SDK in your ReactNative project.
These instructions assume that you have already read the Developer Guide. If you have not yet done so, please do so before continuing below.
Getting started
iOS
Using CocoaPods
Add the following lines to your target in
Podfile
:Install the new pods:
Open your application's
.xcworkspace
file
Manually
Follow the official instructions to manually link libraries: https://reactnative.dev/docs/linking-libraries-ios#manual-linking
Android
Manually
Add the following lines to
android/build.gradle
:Add the following lines to
android/settings.gradle
:Add the following lines inside the
dependencies
block ofandroid/app/build.gradle
:Add the following lines to your application's
MainApplication.java
:In the imports at the top of the file:
In the
getPackages
method:
Usage
Importing the module
Setting properties
Getting properties
Sending events
Listening to events
Last updated