@el12n/react-native-zendesk-support
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

react-native-zendesk-support

A wrapper for the ZendeskSupport SDK for both android and ios.

Getting started

If you are using react-native >= 0.60 you just need to do a simple:

yarn add react-native-zendesk-support

Or if are using npm:

npm i react-native-zendesk-support --save

Usage

import ZendeskSupport from "react-native-zendesk-support";

// Initialize the Zendesk Support SDK in the following form, at the very beginning of your app:
const result = await ZendeskSupport.initialization(
    appId: string,
    clientId: string,
    zendeskUrl: string,
    locale?: ZendeskSupportLocale | undefined);

/* 
* Later just call the next method when you want to launch
* the Request List, with its native capability to create new
* tickets and answer current tickets...
*/
const result = await ZendeskSupport.openTickets("Your subject");

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i @el12n/react-native-zendesk-support

Weekly Downloads

2

Version

0.2.1

License

MIT

Unpacked Size

9.16 MB

Total Files

146

Last publish

Collaborators

  • el12n