react-native-erxes-library

TODO

Usage no npm install needed!

<script type="module">
  import reactNativeErxesLibrary from 'https://cdn.skypack.dev/react-native-erxes-library';
</script>

README

react-native-erxes-library

Getting started

$ npm install react-native-erxes-library --save

$ yarn add react-native-erxes-library

Mostly automatic installation

$ react-native link react-native-erxes-library

Usage

import ErxesLibrary from 'react-native-erxes-library';

export default class App extends Component {
  componentDidMount() {
    ErxesLibrary.init('https://example', 'brandCode');
  }
  go = () => {
    ErxesLibrary.start();
  };

  render() {
    return (
      <View>
        <TouchableOpacity
          onPress={() => {
            this.go();
          }}>
          <Text>Start Erxes</Text>
        </TouchableOpacity>
      </View>
    );
  }
}

iOS installation

use_frameworks!

pod 'SDWebImage', :modular_headers => true
pod 'MaterialComponents',:modular_headers => true
  • use use_frameworks! in podfile
  • disable Flipper in podfile.

Open source

ErxesLibrary.init('https://example', 'brandCode');

//then start erxes
ErxesLibrary.start();

Saas

ErxesLibrary.initSaas('companyName', 'brandCode');

//then start erxes
ErxesLibrary.start();