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

33 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 8421
// Function ID: 8422
2026-07-20 16:05:17 +00:00
// Name: ModalScreen
// Dependencies: [19, 17, 21, 4560, 576, 6981, 2]
2026-07-20 16:05:17 +00:00
// Exports: ModalScreen
// Module 8421 (ModalScreen)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 576 */;
import useSafeAreaInsetsKeyboardAwareDefault from "useSafeAreaInsetsKeyboardAware" /* 6981 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
createCacheKey = { container: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { flex: 1, flexDirection: "column", backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_4 = createCacheKey.createStyles(createCacheKey);
const result = require("set").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;
2026-08-24 06:08:38 +00:00
const tmp = callback();
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
};