32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
// Module ID: 8692
|
|
// Function ID: 8693
|
|
// Name: ModalScreen
|
|
// Dependencies: [19, 17, 21, 4478, 712, 5594, 2]
|
|
// Exports: ModalScreen
|
|
|
|
// Module 8692 (ModalScreen)
|
|
import noopAll from "noop" /* 19 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import useSafeAreaInsetsKeyboardAwareDefault from "useSafeAreaInsetsKeyboardAware" /* 5594 */;
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4478 */;
|
|
|
|
noopAll;
|
|
createCacheKey = { container: null };
|
|
createCacheKey = { flex: 1, flexDirection: "column", backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW };
|
|
createCacheKey[0] = createCacheKey;
|
|
let closure_4 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("design/components/Modal/native/ModalScreen.native.tsx");
|
|
|
|
export const ModalScreen = function ModalScreen(children) {
|
|
let backgroundColor = children.backgroundColor;
|
|
const tmp = callback();
|
|
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>;
|
|
};
|