Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
// Module ID: 8542
|
|
// Function ID: 8543
|
|
// Name: ModalScreen
|
|
// Dependencies: [19, 17, 21, 4639, 576, 7088, 2]
|
|
// Exports: ModalScreen
|
|
|
|
// Module 8542 (ModalScreen)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import useSafeAreaInsetsKeyboardAwareDefault from "useSafeAreaInsetsKeyboardAware" /* 7088 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const View = fn(17).View;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4639);
|
|
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>;
|
|
};
|