From ce2b6b652aef18a1a5df06e50e92e8a46e146076 Mon Sep 17 00:00:00 2001 From: G Date: Wed, 24 Apr 2024 21:56:01 +0000 Subject: [PATCH] basic button built on top of ButtonBase --- src/components/Button.tsx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/components/Button.tsx diff --git a/src/components/Button.tsx b/src/components/Button.tsx new file mode 100644 index 0000000..9418fa5 --- /dev/null +++ b/src/components/Button.tsx @@ -0,0 +1,26 @@ +import type { BoxProps, VariantProps } from "@shopify/restyle"; +import type { Theme } from "@themes/Theme"; +import { TouchableOpacity } from "react-native"; +import Card from "./Card"; +import Box from "./bases/Box"; +import ButtonBase from "./bases/ButtonBase"; +import Text from "./bases/Text"; + +type Props = BoxProps & + VariantProps & + VariantProps & { + label: string; + onPress: () => void; + }; + +const Button = ({ onPress, label, textVariants, variant, ...rest }: Props) => { + return ( + + + {label} + + + ); +}; + +export default Button; -- libgit2 0.27.1