48 lines
2.7 KiB
TypeScript
48 lines
2.7 KiB
TypeScript
/* Metro module 10710; source: modules/activities/native/WebViewContext.tsx; dependencies: [57, 31, 27, 33, 4501, 2] */
|
|
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
|
|
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});
|
|
let value = ReactModule;
|
|
value = value.createContext(0);
|
|
const env0_6 = (CreateStylesModule).createStyles({placeholderWebView: {'width': 2,
|
|
'height': 2, 'position': 'absolute', 'opacity': 0}});
|
|
(FileImportTrackerModule).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 = Module00057(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) {
|
|
Module00057(a0._nativeTag);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun82320, 10710, [57, 31, 27, 33, 4501,
|
|
2]) /* metro module 10710, dependencies: [57, 31, 27, 33, 4501, 2] */;
|