decord/source/design/components/Sticky/native/StickyWrapper.native.tsx

43 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 11454
// Function ID: 11455
2026-07-20 16:05:17 +00:00
// Name: StickyWrapper
// Dependencies: [19, 17, 21, 1116, 2]
2026-07-20 16:05:17 +00:00
// Exports: StickyWrapper
// Module 11454 (StickyWrapper)
import utils_PlatformUtils from "utils/PlatformUtils" /* 1116 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
get_ActivityIndicator = fn(17);
({ StyleSheet, View: c2 } = get_ActivityIndicator);
const jsxProd = fn(21);
({ jsx: c3, jsxs: closure_4 } = jsxProd);
const wrapper = StyleSheet.create({ wrapper: { height: "100%", width: "100%" }, header: { zIndex: 1 }, androidHeader: { position: "absolute", top: 0, left: 0, right: 0 } });
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Sticky/native/StickyWrapper.native.tsx");
2026-07-20 16:05:17 +00:00
export const StickyWrapper = function StickyWrapper(header) {
header = header.header;
const obj = { style: null, pointerEvents: header.pointerEvents, children: null };
const items = [header.style, wrapper.wrapper];
obj.style = items;
2026-07-29 08:29:29 +00:00
let tmp5Result = null;
2026-07-20 16:05:17 +00:00
if (null != header) {
2026-07-29 08:29:29 +00:00
const items1 = [tmp3.header, ];
2026-07-20 16:05:17 +00:00
let androidHeader;
2026-07-29 08:29:29 +00:00
if (obj2.isAndroid()) {
androidHeader = tmp3.androidHeader;
2026-07-20 16:05:17 +00:00
}
const obj3 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
items1[1] = androidHeader;
obj3.style = items1;
obj3.children = header;
tmp5Result = React3(tmp2, obj3);
obj2 = utils_PlatformUtils;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items2 = [tmp5Result, header.children];
obj.children = items2;
return React4(React2, obj);
2026-07-20 16:05:17 +00:00
};