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

30 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 7848
// Function ID: 7849
2026-07-20 16:05:17 +00:00
// Name: ModalScreen
2026-08-12 06:57:52 +00:00
// Dependencies: [19, 17, 21, 4344, 712, 5408, 2]
2026-07-20 16:05:17 +00:00
// Exports: ModalScreen
2026-08-12 06:57:52 +00:00
// Module 7848 (ModalScreen)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
createCacheKey = { container: null };
createCacheKey = { flex: 1, flexDirection: "column", backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW };
createCacheKey[0] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").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;
const tmp = createCacheKey();
2026-08-12 06:57:52 +00:00
const insets = importDefault(5408)().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
};