From 129df04ccdb98b9b05b30e5e73e181efc19b5e09 Mon Sep 17 00:00:00 2001 From: moist-webDev Date: Thu, 25 May 2023 00:32:58 -0400 Subject: [PATCH] init button component --- components/Button.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 components/Button.tsx diff --git a/components/Button.tsx b/components/Button.tsx new file mode 100644 index 0000000..46deee4 --- /dev/null +++ b/components/Button.tsx @@ -0,0 +1,22 @@ +import { StyleSheet, Text, View} from 'react-native'; + +export default function Button({ title='', theme={}, onPress, eStyle={} }:any){ + return ( + {title} + ) +} + +const style = (theme:any) => { + return StyleSheet.create({ + container: { + }, + button: { + backgroundColor: theme.primary, + padding: 10, + alignContent: 'center', + color: theme.text, + margin: 10, + borderRadius: 5, + }, + }); +} \ No newline at end of file