decord/source/modules/activities/native/WebViewContext.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

41 lines
1.3 KiB
TypeScript

// Module ID: 9773
// Function ID: 9774
// Name: WebViewContext
// Dependencies: [32, 19, 17, 21, 4636, 2]
// Exports: WebViewContextProvider
// Module 9773 (WebViewContext)
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: c3, jsxs: closure_4 } = jsxProd);
const context = noop.createContext(0);
const createStyles = fn(4636);
let closure_6 = createStyles.createStyles({ placeholderWebView: { width: 2, height: 2, position: "absolute", opacity: 0 } });
const size = fn(2);
const result = size.fileFinishedImporting("modules/activities/native/WebViewContext.tsx");
export const WebViewContext = context;
export const WebViewContextProvider = function WebViewContextProvider(children) {
const tmp2 = _slicedToArray(noop.useState(0), 2);
closure_0 = tmp3;
const items = [tmp2[1]];
const obj = { value: tmp2[0], children: null };
const tmp = closure_6();
const items1 = [
React3(View, {
style: closure_6().placeholderWebView,
ref: noop.useCallback((_nativeTag) => {
if (_nativeTag) {
closure_0(_nativeTag._nativeTag);
}
}, items),
pointerEvents: "none"
}),
children.children
];
obj.children = items1;
return React4(context.Provider, obj);
};