react-native-zendesk-chat
Advanced tools
Comparing version 0.4.1-beta.4 to 0.4.1-beta.5
24
index.js
@@ -1,20 +0,14 @@ | ||
import { NativeModules, Platform } from "react-native"; | ||
import { NativeModules } from "react-native"; | ||
const RNZendeskChatModule = NativeModules.RNZendeskChatModule; | ||
Platform.select({ | ||
default: () => { | ||
return; | ||
}, | ||
android: () => { | ||
// react-native android doesn't support Java method overloading | ||
// So this code implements the init method but makes sure to call | ||
// the right Java Code making sure there's a value for each parameter | ||
// Reference: https://github.com/facebook/react-native/blob/07d090dbc6c46b8f3760dbd25dbe0540c18cb3f3/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java#L85-L86 | ||
RNZendeskChatModule.init = (key, appId) => { | ||
return RNZendeskChatModule._initWith2Args(key, appId || null); | ||
}; | ||
}, | ||
})(); | ||
// react-native doesn't support method overloading for Java or Objective-C | ||
// So this code implements the init method but makes sure to | ||
// always call it with two defined parameters, passing null for the second as needed | ||
// Reference: https://github.com/facebook/react-native/blob/07d090dbc6c46b8f3760dbd25dbe0540c18cb3f3/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java#L85-L86 | ||
RNZendeskChatModule.init = (key, appId) => { | ||
return RNZendeskChatModule._initWith2Args(key, appId || null); | ||
}; | ||
/** | ||
@@ -21,0 +15,0 @@ * TypeScript Documentation for this Module describes the available methods & parameters |
{ | ||
"name": "react-native-zendesk-chat", | ||
"version": "0.4.1-beta.4", | ||
"version": "0.4.1-beta.5", | ||
"description": "React Native Wrapper around Zopim Zendesk Chat", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -79,2 +79,14 @@ # react-native-zendesk-chat | ||
### Obtaining the `YOUR_ZENDESK_ACCOUNT_KEY` | ||
To optain your zendesk account key see the instructions in [Initializing the SDK](https://api.zopim.com/web-sdk/#initializing-the-sdk) in the Zendesk SDK. | ||
To get your account key, follow these steps: | ||
1. In the Zendesk Chat Dashboard, click on your profile in the upper right corner and click on the 'Check Connection' option: | ||
![status_dropdown](https://api.zopim.com/web-sdk/images/status_dropdown.png) | ||
1. In the dialog, copy the account key value | ||
![account_key](https://api.zopim.com/web-sdk/images/account_key.png) | ||
### Styling | ||
@@ -81,0 +93,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48253
193
108