decord/source/components_native/common/SafeAreaView.tsx

86 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 6803
// Function ID: 6804
2026-07-20 16:05:17 +00:00
// Name: SafeAreaPaddingView
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 21, 1629, 6804, 659, 2]
2026-07-20 16:05:17 +00:00
// Exports: SafeAreaPaddingView
2026-08-15 05:55:55 +00:00
// Module 6803 (SafeAreaPaddingView)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { jsx } from "jsxProd";
const result = require("jsxProd").fileFinishedImporting("components_native/common/SafeAreaView.tsx");
2026-07-20 16:05:17 +00:00
export const SafeAreaPaddingView = function SafeAreaPaddingView(top) {
let flag = top.top;
if (flag === undefined) {
flag = false;
}
let flag2 = top.bottom;
if (flag2 === undefined) {
flag2 = false;
}
let flag3 = top.left;
if (flag3 === undefined) {
flag3 = false;
}
let flag4 = top.right;
if (flag4 === undefined) {
flag4 = false;
}
let style = top.style;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(top, Object.create(null));
2026-07-23 10:11:24 +00:00
let ref;
let items;
2026-07-20 16:05:17 +00:00
let React;
2026-07-23 10:11:24 +00:00
const rect = ref(items[3])();
2026-07-29 08:29:29 +00:00
let obj1 = React;
2026-07-23 10:11:24 +00:00
ref = React.useRef(null);
2026-07-29 08:29:29 +00:00
if (style == null) {
2026-07-20 16:05:17 +00:00
style = {};
}
2026-07-23 10:11:24 +00:00
items = [style, , , , ];
2026-07-29 08:29:29 +00:00
let tmp9;
2026-07-20 16:05:17 +00:00
if (flag) {
2026-07-29 08:29:29 +00:00
let obj = { paddingTop: null };
obj[0] = rect.top + tmp5;
tmp9 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[1] = tmp9;
let tmp10;
2026-07-20 16:05:17 +00:00
if (flag2) {
2026-07-29 08:29:29 +00:00
obj = { paddingBottom: null };
obj[0] = rect.bottom + tmp6;
tmp10 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[2] = tmp10;
let tmp11;
2026-07-20 16:05:17 +00:00
if (flag3) {
2026-07-29 08:29:29 +00:00
obj1 = { paddingLeft: null };
obj1[0] = rect.left + tmp7;
tmp11 = obj1;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[3] = tmp11;
let tmp12;
2026-07-20 16:05:17 +00:00
if (flag4) {
2026-07-29 08:29:29 +00:00
const obj2 = { paddingRight: null };
obj2[0] = rect.right + tmp8;
tmp12 = obj2;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[4] = tmp12;
const tmp13 = ref(items[4])(ref);
const tmp14 = ref(items[5])(items, tmp13);
React = tmp14;
if (tmp14) {
items = tmp13;
items = tmp13;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const insertionEffect = obj1.useInsertionEffect(() => {
2026-07-23 10:11:24 +00:00
if (!c2) {
ref.current = items;
2026-07-20 16:05:17 +00:00
}
});
const merged1 = Object.assign(merged);
2026-07-23 10:11:24 +00:00
return <View style={items} />;
2026-07-20 16:05:17 +00:00
};