Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
35 lines
977 B
JavaScript
35 lines
977 B
JavaScript
// Module ID: 8423
|
|
// Function ID: 8424
|
|
// Dependencies: [17]
|
|
|
|
// Module 8423
|
|
import get_ActivityIndicator from "module_17" /* 17 */;
|
|
|
|
const NativeModules = get_ActivityIndicator.NativeModules;
|
|
const nativeEventEmitter = new get_ActivityIndicator.NativeEventEmitter(undefined);
|
|
class WebViewProxy {
|
|
constructor(arg0) {
|
|
this.webViewKey = global;
|
|
return;
|
|
}
|
|
injectJavaScript(arg0) {
|
|
RNCWebView = NativeModules.RNCWebView;
|
|
return RNCWebView.injectJavaScriptWithWebViewKey(this.webViewKey, global);
|
|
}
|
|
addOnMessageListener(arg0) {
|
|
closure_0 = global;
|
|
self = this;
|
|
return closure_1.addListener("ReactNativeWebViewOnMessageWithWebViewKey", (webViewKey) => {
|
|
if (webViewKey.webViewKey === self.webViewKey) {
|
|
closure_0(webViewKey);
|
|
}
|
|
});
|
|
}
|
|
releaseWebView() {
|
|
RNCWebView = NativeModules.RNCWebView;
|
|
releaseWebViewResult = RNCWebView.releaseWebView(this.webViewKey);
|
|
return;
|
|
}
|
|
}
|
|
|
|
export default WebViewProxy;
|