|
|
@ -3,7 +3,7 @@ import { StyleSheet, Text, TouchableOpacity } from "react-native"; |
|
|
|
|
|
|
|
import colors from "../config/colors"; |
|
|
|
|
|
|
|
function AppButton({ title, onPress, color = "primary" }) { |
|
|
|
function AppButton({ title, onPress, color = "lightBlue" }) { |
|
|
|
return ( |
|
|
|
<TouchableOpacity |
|
|
|
style={[styles.button, { backgroundColor: colors[color] }]} |
|
|
@ -16,8 +16,8 @@ function AppButton({ title, onPress, color = "primary" }) { |
|
|
|
|
|
|
|
const styles = StyleSheet.create({ |
|
|
|
button: { |
|
|
|
backgroundColor: colors.primary, |
|
|
|
borderRadius: 6, |
|
|
|
backgroundColor: colors.lightBlue, |
|
|
|
borderRadius: 20, |
|
|
|
justifyContent: "center", |
|
|
|
alignItems: "center", |
|
|
|
width: "100%", |
|
|
|