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

39 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 9648
// Function ID: 9649
2026-07-20 16:05:17 +00:00
// Name: context
// Dependencies: [32, 19, 17, 21, 4560, 2]
2026-07-20 16:05:17 +00:00
// Exports: WebViewContextProvider
// Module 9648 (context)
2026-08-24 06:08:38 +00:00
import closure_0 from "_slicedToArray" /* 32 */;
import importAllResult from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import context from "module_0" /* 0 */;
import createCacheKey from "createCacheKey" /* 4560 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
let closure_6 = createCacheKey.createStyles({ placeholderWebView: { width: 2, height: 2, position: "absolute", opacity: 0 } });
2026-08-24 06:08:38 +00:00
const result = require("set").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-08-24 06:08:38 +00:00
callback(_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);
};