decord/source/7962_nativeEventEmitter.js

37 lines
1 KiB
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 7962
// Function ID: 7963
2026-07-29 08:29:29 +00:00
// Name: nativeEventEmitter
// Dependencies: [17]
2026-08-25 06:04:03 +00:00
// Module 7962 (nativeEventEmitter)
2026-08-24 06:08:38 +00:00
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-07-29 08:29:29 +00:00
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 self.addListener("ReactNativeWebViewOnMessageWithWebViewKey", (webViewKey) => {
if (webViewKey.webViewKey === self.webViewKey) {
callback(webViewKey);
}
});
}
releaseWebView() {
RNCWebView = NativeModules.RNCWebView;
releaseWebViewResult = RNCWebView.releaseWebView(this.webViewKey);
return;
}
}
export default WebViewProxy;