Skip to content

Installation

Itgel G edited this page Jun 22, 2021 · 3 revisions

react-native-erxes-sdk

$ npm install react-native-erxes-sdk --save or $ yarn add react-native-erxes-sdk

Mostly automatic installation

$ react-native link react-native-erxes-sdk

iOS installation

platform :ios, '12.1'
use_frameworks!
use_modular_headers!

  • use use_frameworks! in podfile
  • disable Flipper in podfile.

Run sdk

import ErxesSdk from 'react-native-erxes-sdk';

ErxesSdk.init(
              brandCode,
              apiUrl,
              organizationName,
              email,
              phone,
              data,
              comapnyData,
              code,
            );
//then start erxes
ErxesSdk.start();