decord/source/design/components/Layers/native/LayerScope.native.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

65 lines
2.1 KiB
TypeScript

// Module ID: 7259
// Function ID: 7260
// Name: LayerScope
// Dependencies: [32, 19, 17, 1074, 21, 5679, 7260, 2]
// Exports: LayerScope
// Module 7259 (LayerScope)
import useInitialValueDefault from "useInitialValue" /* 5679 */;
import LayerContext from "LayerContext" /* 7260 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
require = fn;
function Layer(zIndex) {
zIndex = zIndex.zIndex;
_slicedToArray = undefined;
const context = noop.useContext(zIndex(7260).LayerContext);
dependencyMap = _slicedToArray(noop.useState({}), 2)[1];
_slicedToArray = noop.useRef(null);
const items = [context];
const effect = noop.useEffect(() => {
context.invalidate = () => closure_1_2({});
return () => {
context.invalidate = () => null;
};
}, items);
const items1 = context.items;
const items2 = [zIndex];
return closure_8(closure_5, {
style: noop.useMemo(() => {
const obj = {};
const merged = Object.assign(absoluteFillObject.absoluteFillObject);
obj.zIndex = zIndex;
return obj;
}, items2),
ref(current) {
closure_3.current = current;
context.setSurfaceRef(current);
},
onLayout: NOOP,
pointerEvents: "box-none",
children: items1.map((children) => closure_1_8(React.Fragment, { children: children.component }, children.key))
});
}
get_ActivityIndicator = fn(17);
({ View: hasOwnProperty, StyleSheet: metroRequire } = get_ActivityIndicator);
const NOOP = fn(1074).NOOP;
const jsxProd = fn(21);
({ jsx: closure_8, jsxs: closure_9 } = jsxProd);
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Layers/native/LayerScope.native.tsx");
export const LayerScope = function LayerScope(arg0) {
({ children, zIndex } = arg0);
const obj = {
value: useInitialValueDefault(() => {
const layerContextManager = new LayerContext.LayerContextManager();
return layerContextManager;
}),
children: null
};
const items = [children, React6(Layer, { zIndex })];
obj.children = items;
return React7(LayerContext.LayerContext.Provider, obj);
};