decord/source/modules/activities/native/WebViewContext.tsx

41 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 12472
// Function ID: 12473
2026-07-20 16:05:17 +00:00
// Name: context
2026-08-15 05:55:55 +00:00
// Dependencies: [32, 19, 17, 21, 4661, 2]
2026-07-20 16:05:17 +00:00
// Exports: WebViewContextProvider
2026-08-15 05:55:55 +00:00
// Module 12472 (context)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
import context from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
({ jsx: c3, jsxs: c4 } = jsxProd);
let closure_6 = createCacheKey.createStyles({ placeholderWebView: { width: 2, height: 2, position: "absolute", opacity: 0 } });
2026-07-23 10:11:24 +00:00
const result = require("get ActivityIndicator").fileFinishedImporting("modules/activities/native/WebViewContext.tsx");
2026-07-20 16:05:17 +00:00
export const WebViewContext = context;
export const WebViewContextProvider = function WebViewContextProvider(children) {
2026-07-29 08:29:29 +00:00
let callback;
2026-07-20 16:05:17 +00:00
const tmp2 = callback(importAllResult.useState(0), 2);
2026-07-23 10:11:24 +00:00
callback = tmp3;
2026-07-20 16:05:17 +00:00
const items = [tmp2[1]];
2026-07-29 08:29:29 +00:00
let obj = { value: tmp2[0], children: null };
2026-07-20 16:05:17 +00:00
obj = {
style: callback4().placeholderWebView,
ref: importAllResult.useCallback((_nativeTag) => {
if (_nativeTag) {
2026-07-29 08:29:29 +00:00
_undefined(_nativeTag._nativeTag);
2026-07-20 16:05:17 +00:00
}
}, items),
pointerEvents: "none"
};
const items1 = [callback2(View, obj), children.children];
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-20 16:05:17 +00:00
return callback3(context.Provider, obj);
};