decord/source/design/components/Modal/native/ModalScreen.native.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

30 lines
1.2 KiB
TypeScript

// Module ID: 8509
// Function ID: 8510
// Name: ModalScreen
// Dependencies: [19, 17, 21, 4607, 576, 7055, 2]
// Exports: ModalScreen
// Module 8509 (ModalScreen)
import nativeDefault from "native" /* 576 */;
import useSafeAreaInsetsKeyboardAwareDefault from "useSafeAreaInsetsKeyboardAware" /* 7055 */;
import noop from "module_19" /* 19 */;
const View = fn(17).View;
const jsx = fn(21).jsx;
const createStyles = fn(4607);
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");
export const ModalScreen = function ModalScreen(children) {
let backgroundColor = children.backgroundColor;
const tmp = closure_4();
const insets = useSafeAreaInsetsKeyboardAwareDefault().insets;
const style = [tmp.container, ];
if (backgroundColor == null) {
backgroundColor = tmp.container.backgroundColor;
}
style[1] = { backgroundColor, paddingLeft: insets.left, paddingRight: insets.right, paddingBottom: insets.bottom };
return <View style={style}>{arg0.children}</View>;
};