From fa3925417aadfea8002a291f3d5813260b96931b Mon Sep 17 00:00:00 2001 From: G Date: Mon, 9 Sep 2024 16:54:32 +0000 Subject: [PATCH] card for modal --- src/themes/Theme.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/themes/Theme.tsx b/src/themes/Theme.tsx index c25bcf4..ca10c70 100644 --- a/src/themes/Theme.tsx +++ b/src/themes/Theme.tsx @@ -1,4 +1,5 @@ import { createTheme } from "@shopify/restyle"; +import { Dimensions } from "react-native"; const palette = { purpleLight: "#8C6FF7", @@ -128,6 +129,23 @@ const theme = createTheme({ shadowRadius: 10, elevation: 5, }, + modal: { + width: 300, + // height: 200, + backgroundColor: "white", + alignItems: "center", + justifyContent: "center", + alignSelf: "center", + top: Dimensions.get("window").height / 2 - 150, + position: "absolute", + zIndex: 10, + borderRadius: 15, + gap: "m", + shadowColor: "black", + shadowOffset: { width: 0, height: 0 }, + shadowOpacity: 0.5, + p: "m", + }, }, buttonVariants: { defaults: { -- libgit2 0.27.1