npm

zendesk-mobile-sdk-rn-marjanemall
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

zendesk-mobile-sdk-rn

zendesk mobile sdk for react native

Installation

npm install zendesk-mobile-sdk-rn

and add this to build.gradle file (not app build.gradle)

allprojects {
    repositories {
    maven { url 'https://zendesk.jfrog.io/zendesk/repo' }
  }
}

Usage

import { initZendesk, showHelpCenter, setColors /* just for ios*/ } from 'zendesk-mobile-sdk-rn';

// ...
React.useEffect(() => {
  initZendesk({
    zendeskUrl: ZendeskConfig.zendeskUrl,
    appId: ZendeskConfig.appId,
    clientId: ZendeskConfig.clientId,
  });

  // just for ios
  setColors({
    primaryColor: '#00ff00',
    titleColor: '#ff0000',
    placeholderColor: '#0000ff',
  });
}, []);

const handleBtnClick = React.useCallback(() => {
  showHelpCenter();
}, []);

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

Dependencies (0)

    Dev Dependencies (21)

    Package Sidebar

    Install

    npm i zendesk-mobile-sdk-rn-marjanemall

    Weekly Downloads

    2

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    1.03 MB

    Total Files

    163

    Last publish

    Collaborators

    • ayoub_mmall