react-native-zendesk-chat
Advanced tools
Comparing version 0.4.1-beta.1 to 0.4.1-beta.2
17
index.js
@@ -1,5 +0,20 @@ | ||
import { NativeModules } from "react-native"; | ||
import { NativeModules, Platform } 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); | ||
}; | ||
}, | ||
})(); | ||
/** | ||
@@ -6,0 +21,0 @@ * TypeScript Documentation for this Module describes the available methods & parameters |
{ | ||
"name": "react-native-zendesk-chat", | ||
"version": "0.4.1-beta.1", | ||
"version": "0.4.1-beta.2", | ||
"description": "React Native Wrapper around Zopim Zendesk Chat", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
47191
115