From 5348c27eff1e65dde2c74cacf994c83707db59b9 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Mon, 16 Oct 2023 12:04:28 +0530 Subject: [PATCH] fix: tamagui styled components --- cases/change-variants/Tamagui.tsx | 8 ++++---- cases/simple-component/Tamagui.tsx | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cases/change-variants/Tamagui.tsx b/cases/change-variants/Tamagui.tsx index 1e53f8a..429eca6 100644 --- a/cases/change-variants/Tamagui.tsx +++ b/cases/change-variants/Tamagui.tsx @@ -1,9 +1,9 @@ -import { styled } from "tamagui"; -import React, { useMemo } from "react"; -import { View, Text } from "react-native"; +import { styled, Stack } from "tamagui"; +import React from "react"; +// import { Text } from "react-native"; import { COUNT } from "../../utils"; -const Box = styled(View, { +const Box = styled(Stack, { bc: "$yellow5Light", p: "$2", m: "$1", diff --git a/cases/simple-component/Tamagui.tsx b/cases/simple-component/Tamagui.tsx index 4425c51..301a85e 100644 --- a/cases/simple-component/Tamagui.tsx +++ b/cases/simple-component/Tamagui.tsx @@ -1,9 +1,9 @@ -import { styled } from "tamagui"; +import { Stack, styled} from "tamagui"; import React from "react"; -import { View } from "react-native"; +// import { View } from "react-native"; import { COUNT } from "../../utils"; -const Box = styled(View, { +const Box = styled(Stack, { bc: "$yellow5Light", p: "$2", m: "$1",