React Native configuration

Prev Next

Here is how it works:

Embedding Xebo.ai Mobile SDK – react native version

Prerequisites

  1. Make sure to have the react native development environment on the system.

  2. Requirements are :-

    Requirement

    Minimum

    React Native

    0.71.0+

    React

    18.2.0+

    Node.js

    18.0.0+

    iOS

    13.0+

    Android

    API 24 (Android 7.0)+

3.React Native package url : -

https://www.npmjs.com/package/react-native-my-survey-sdk

4.Package install command is:-

npm install react-native-my-survey-sdk
# iOS only
cd ios && pod install && cd ..

5. Peer Dependencies

Install any of these that are not already in your project:

npm install \
  @react-native-async-storage/async-storage \
  @react-native-community/netinfo \
  react-native-modal \
  react-native-reanimated

Package

Purpose

@react-native-async-storage/async-storage

Offline response queue

@react-native-community/netinfo

Network detection for auto-sync

react-native-modal

Survey bottom-sheet

react-native-reanimated

Animations

Reanimated requires a Babel plugin. Add to babel.config.js:

module.exports = { plugins: ['react-native-reanimated/plugin'] };