react-native-jivo
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

react-native-jivo

jivo sdk for react-native

Installation

  1. install library
yarn add react-native-jivo
  1. link
react-native link
  1. copy html directory to your project - see official Jivo sdk repo

  2. Change AppDelegate.m replace

  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;

with

  UINavigationController *rootViewController = [UINavigationController new];
  UIViewController *ReactViewController = [UIViewController new];
  ReactViewController.view = rootView;
  [rootViewController pushViewController:ReactViewController animated:YES];
  self.window.rootViewController = rootViewController;
  rootViewController.navigationBar.layer.hidden = YES;

Usage

import JivoChat from 'react-native-jivo';

JivoChat.openChat();
JivoChat.emitter.addListener(JivoChat.Events.client_info, listener);
JivoChat.callApiMethod(JivoChat.Methods.getUserInfo);
JivoChat.emitter.removeListener(JivoChat.Events.client_info, listener);

TODO

  • [ ] example

/react-native-jivo/

    Package Sidebar

    Install

    npm i react-native-jivo

    Weekly Downloads

    2

    Version

    1.0.2

    License

    none

    Unpacked Size

    111 kB

    Total Files

    31

    Last publish

    Collaborators

    • ownikss