diff --git a/components/Button.tsx b/components/Button.tsx index bd62fd4..96a1855 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -1,22 +1,27 @@ -import { StyleSheet, Text, View} from 'react-native'; +import { StyleSheet, Text, TouchableOpacity} from 'react-native'; export default function Button({ title='', theme={}, onPress, style={} }:any){ return ( - {title} + + {title} + ) } const cstyle = (theme:any) => { return StyleSheet.create({ - container: { - }, button: { backgroundColor: theme.primary, padding: 10, alignContent: 'center', + textAlign: 'center', + justifyContent: 'center', color: theme.text, margin: 10, borderRadius: 5, }, + text: { + color: theme.text, + }, }); } \ No newline at end of file