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