45 lines
2.2 KiB
React
45 lines
2.2 KiB
React
/* Metro module 5276; source: unknown; dependencies: [27] */
|
|
function _fun46902(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:6, offset: 0x011b2584, size: 115 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = require(27) /* metro dependency 27 */;
|
|
const env0_0 = value.NativeModules;
|
|
const NativeEventEmitter = value.NativeEventEmitter;
|
|
const nativeEventEmitter = new NativeEventEmitter(undefined);
|
|
exports.default = (() => {
|
|
var closure = _fun46904;
|
|
closure.prototype.injectJavaScript = _fun46905;
|
|
closure.prototype.addOnMessageListener = _fun46906;
|
|
closure.prototype.releaseWebView = _fun46908;
|
|
return closure;
|
|
})();
|
|
}
|
|
|
|
function _fun46903() { // fn#46903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:164, offset: 0x011b25f7, size: 57 bytes, params: 1, frame: 4
|
|
const closure = function(a0) {
|
|
this.webViewKey = a0;
|
|
};
|
|
closure.prototype.injectJavaScript = function(a0) {
|
|
var RNCWebView = NativeModules.RNCWebView;
|
|
return RNCWebView.injectJavaScriptWithWebViewKey(this.webViewKey, a0);
|
|
};
|
|
closure.prototype.addOnMessageListener = addOnMessageListener;
|
|
closure.prototype.releaseWebView = function() {
|
|
var RNCWebView = NativeModules.RNCWebView;
|
|
RNCWebView.releaseWebView(this.webViewKey);
|
|
};
|
|
return closure;
|
|
}
|
|
|
|
function addOnMessageListener(a0) { // fn#46906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:392, offset: 0x011b2669, size: 48 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
return env1_1.addListener('ReactNativeWebViewOnMessageWithWebViewKey', _fun46907);
|
|
}
|
|
|
|
function _fun46907(a0) { // fn#46907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:481, offset: 0x011b2699, size: 41 bytes, params: 2, frame: 12
|
|
if (a0.webViewKey === env0_1.webViewKey) {
|
|
env0_0(a0);
|
|
}
|
|
}
|
|
|