React Native bridge to Zendesk Support SDK v2 on iOS and Android.
- Add the package via yarn or npm
yarn add react-native-zendesk
npm install --save react-native-zendesk
- Link the modules to your native projects
react-native link react-native-zendesk
const config = {
zendeskUrl: ZENDESK_URL,
appId: ZENDESK_APP_ID,
clientId: ZENDESK_CLIENT_ID,
};
Zendesk.initialize(config);
Zendesk.identifyJWT(USER_TOKEN);
// possible options to pass to the help center
interface Options {
hideContactSupport?: boolean
}
Zendesk.showHelpCenter(OPTIONS);