decord/source/design/components/Modal/native/ModalScreen.native.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

30 lines
1.2 KiB
TypeScript

// Module ID: 8551
// Function ID: 8552
// Name: ModalScreen
// Dependencies: [19, 17, 21, 4638, 576, 7091, 2]
// Exports: ModalScreen
// Module 8551 (ModalScreen)
import nativeDefault from "native" /* 576 */;
import useSafeAreaInsetsKeyboardAwareDefault from "useSafeAreaInsetsKeyboardAware" /* 7091 */;
import noop from "module_19" /* 19 */;
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");
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>;
};