decord/source/design/components/Stack/native/Stack.native.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

53 lines
1.5 KiB
TypeScript

// Module ID: 4973
// Function ID: 4974
// Name: Stack
// Dependencies: [19, 17, 21, 4560, 2]
// Exports: Stack
// Module 4973 (Stack)
import noopAll from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
noopAll;
let closure_2 = createCacheKey.createStyles((gap, arg1, alignItems, justifyContent) => {
const stack = { width: "100%", gap, alignItems, justifyContent, flexDirection: null };
let str = "column";
if ("horizontal" === arg1) {
str = "row";
}
stack[4] = str;
return { stack };
});
const result = require("set").fileFinishedImporting("design/components/Stack/native/Stack.native.tsx");
export const Stack = function Stack(spacing) {
spacing = spacing.spacing;
let num = 8;
if (undefined !== spacing) {
num = spacing;
}
const direction = spacing.direction;
let str = "vertical";
if (undefined !== direction) {
str = direction;
}
const align = spacing.align;
let str2 = "stretch";
if (undefined !== align) {
str2 = align;
}
const justify = spacing.justify;
let str3 = "flex-start";
if (undefined !== justify) {
str3 = justify;
}
({ children, style, onLayout } = spacing);
const obj = { style: null, onLayout: null, children: null };
const items = [callback(num, str, str2, str3).stack, style];
obj[0] = items;
obj[1] = onLayout;
obj[2] = children;
return <View style={null} onLayout={null}>{null}</View>;
};