decord/source/design/components/Modal/native/ModalScreen.native.tsx

31 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 8551
// Function ID: 8552
2026-07-20 16:05:17 +00:00
// Name: ModalScreen
// Dependencies: [19, 17, 21, 4638, 576, 7091, 2]
2026-07-20 16:05:17 +00:00
// Exports: ModalScreen
// Module 8551 (ModalScreen)
import nativeDefault from "native" /* 576 */;
import useSafeAreaInsetsKeyboardAwareDefault from "useSafeAreaInsetsKeyboardAware" /* 7091 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const View = fn(17).View;
const jsx = fn(21).jsx;
const createStyles = fn(4638);
const obj2 = { container: { flex: 1, flexDirection: "column", backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW } };
let closure_4 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Modal/native/ModalScreen.native.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const ModalScreen = function ModalScreen(children) {
let backgroundColor = children.backgroundColor;
const tmp = closure_4();
2026-08-24 06:08:38 +00:00
const insets = useSafeAreaInsetsKeyboardAwareDefault().insets;
2026-07-29 08:29:29 +00:00
const style = [tmp.container, ];
if (backgroundColor == null) {
2026-07-20 16:05:17 +00:00
backgroundColor = tmp.container.backgroundColor;
}
2026-07-29 08:29:29 +00:00
style[1] = { backgroundColor, paddingLeft: insets.left, paddingRight: insets.right, paddingBottom: insets.bottom };
return <View style={style}>{arg0.children}</View>;
2026-07-20 16:05:17 +00:00
};