44 lines
2.2 KiB
TypeScript
44 lines
2.2 KiB
TypeScript
/* Metro module 10710; source: modules/activities/native/WebViewContext.tsx; dependencies: [57, 31, 27, 33, 4501, 2] */
|
|
function _fun82320(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:6, offset: 0x01ef3317, size: 244 bytes, params: 8, frame: 20
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(57) /* metro dependency 57 */;
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
|
const value2 = require(33) /* metro dependency 33 */;
|
|
const env0_3 = value2.jsx;
|
|
const env0_4 = value2.jsxs;
|
|
value = value.createContext(0);
|
|
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({placeholderWebView: {'width': 2,
|
|
'height': 2, 'position': 'absolute', 'opacity': 0}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/WebViewContext.tsx');
|
|
exports.WebViewContext = value;
|
|
exports.WebViewContextProvider = WebViewContextProvider;
|
|
}
|
|
|
|
function WebViewContextProvider({children}) { // fn#82321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:395, offset: 0x01ef340b, size: 176 bytes, params: 2, frame: 19
|
|
const styles = useStyles();
|
|
const binding = env0_1;
|
|
const value3 = env0_0(binding.useState(0), 2);
|
|
const property = value3[0];
|
|
const value4 = binding.useCallback(_fun82322, [value3[1]]);
|
|
const Provider = env0_5.Provider;
|
|
return (
|
|
<Provider value={property}>
|
|
<View
|
|
style={styles.placeholderWebView}
|
|
ref={value4}
|
|
pointerEvents="none"
|
|
/>
|
|
{children}
|
|
</Provider>
|
|
);
|
|
}
|
|
|
|
function _fun82322(a0) { // fn#82322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:507, offset: 0x01ef34bb, size: 30 bytes, params: 2, frame: 11
|
|
if (a0) {
|
|
env0_0(a0._nativeTag);
|
|
}
|
|
}
|
|
|