Getting started

Add the OpenWeb SDK to your React Native app

The OpenWeb React Native SDK lets you easily add OpenWeb’s conversation and commenting features to your React Native apps. It wraps our native iOS and Android SDKs, delivering the full OpenWeb conversation experience.

Prerequisites

  • React Native Version - Minimum 0.76 or higher
  • React Native Architecture - The SDK Supports both react native architectures
  • iOS Version: Minimum iOS 15.0 or higher
  • Android Version: Minimum API Level 23 (Android 6.0) or higher
  • OpenWeb Account - Contact your PSM for more information

Install the React Native package

To run the React Native SDK, install the Spot.IM package to your project with npm or Yarn.

NPM

npm install react-native-openweb-sdk

Yarn

yarn add react-native-openweb-sdk

iOS Setup:

  • Requires running npx pod-install

Allow image access

To enable users to attach images to their comments, you need to configure platform-specific permissions for camera and photo library access on both iOS and Android.

iOS

In your app's Info.plist file, add:

<key>NSCameraUsageDescription</key>
<string>Allow access to your camera to take photos for comments.</string>``xml

<key>NSPhotoLibraryUsageDescription</key>
<string>Allow access to your photo library to attach images to comments.</string>

Android

In your AndroidManifest.xml file, add the following permissions:

<uses-feature android:name="android.hardware.camera" android:required="false" />

<uses-permission android:name="android.permission.CAMERA" />

<application>
    ...
</application>