React Native

React Native and the Link11 WAAP 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

  1. Add the following lines to your target in Podfile:

    pod 'Reblaze', :path => '../../../../libs/iOS/'
    pod 'RNReblazeReactNativeSdk', :path => '../../../../libs/react-native/iOS/'

  2. Install the new pods:

    pod install

  3. 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

  1. Add the following lines to android/build.gradle:

  2. Add the following lines to android/settings.gradle:

  3. Add the following lines inside the dependencies block of android/app/build.gradle:

  4. 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

Was this helpful?