Browse Source

changing submit button color

master
analuizaff 4 years ago
parent
commit
4f81955344
  1. 6
      src/app/components/Button.js

6
src/app/components/Button.js

@ -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%",

Loading…
Cancel
Save