Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNZendesk is null #16

Open
marciok opened this issue Nov 12, 2019 · 1 comment
Open

RNZendesk is null #16

marciok opened this issue Nov 12, 2019 · 1 comment

Comments

@marciok
Copy link

marciok commented Nov 12, 2019

Hi, I'm using RN 0.60.5.
And installed using npm install --save react-native-zendesk, but when I call RNZendesk I get null, example:

const { RNZendesk } = NativeModules;

  componentWillMount(){
    const config = {
      appId: 'abc123',
      zendeskUrl: 'https://foo.zendesk.com',
      clientId: 'mobile_sdk_client_123456'
    };

    console.warn(RNZendesk)
  }

PS: I only tried on iOS.

@pentolbakso
Copy link

pentolbakso commented Nov 21, 2019

I think the correct way to call is

import * as RNZendesk from "react-native-zendesk";
     
RNZendesk.initialize({
    appId: 'abc123',,
    clientId: 'https://foo.zendesk.com',
    zendeskUrl: 'mobile_sdk_client_123456'
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants