Wix Answers Mobile SDK for React Native

Wix Answers SDK for React Native enables your users to access the Wix Answers widget from inside your application. Your users will have access to all of the existing widget features:
  • Live chat
  • KB articles
  • Contact form
  • Request callback
  • and more!

Getting Started

$ npm install react-native-wixanswers-sdk --save
$ cd ios && pod install
See the corresponding documentation for additional configuration and options:
Note
This module does not support Expo.

Usage

1
2
3
4
5
6
7
8
9
import WixanswersSdk from 'react-native-wixanswers-sdk';

WixanswersSdk.configure('TENANT_NAME', 'WIDGET_ID', async (setToken) => {
  const token = await MY_USER_AUTHENTICATION_FUNCTION(); // <-- implement this function to authenticate via your own server
  setToken(token);
});

// after the SDK is configured
WixanswersSdk.openWidget();
IN THIS ARTICLE