Socket
Book a DemoInstallSign in
Socket

@metalpay/react-native-zendesk-support

Package Overview
Dependencies
Maintainers
16
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metalpay/react-native-zendesk-support

react-native-zendesk-support

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
16
Created
Source

react-native-zendesk-support

react-native-zendesk-support

Overview

Limited React Native wrapper around the classic Zendesk Support SDK.

  • Minimum iOS version: 11
  • Minimum Android version: API level 21 (Lollipop/5.0)

Installation

npm install @metalpay/react-native-zendesk-support

Usage

import {
  identifyAnonymous,
  initialize,
  showHelpCenter,
} from 'react-native-zendesk-support';

// ...

// 1 - initialize the Zendesk client
await initialize({
  appId: 'appId',
  clientId: 'clientId',
  zendeskUrl: 'zendeskUrl',
});

// 2 - identify the user
await identifyAnonymous(
  'name', // optional
  'email' // optional
);

// ...

// 3 - show the help center
const result = await showHelpCenter(
  {
    subject: 'subject',
    tags: ['tag1', 'tag2', 'tag3'],
    hideContactSupport: false,
    groupType: 2, // 0: DEFAULT, 1: SECTION, 2: CATEGORY
    groupIds: [123, 456], // array of section/category IDs
  } // optional
);

Contributing

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

License

MIT

Made with create-react-native-library

Keywords

react-native

FAQs

Package last updated on 03 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts