Fix: gradient background on signup page; Added: color for text in button, on index page added new button and greeting

This commit is contained in:
2024-05-09 20:06:20 +02:00
parent a25ce29154
commit e8a0449ad2
4 changed files with 41 additions and 7 deletions

View File

@ -2,7 +2,12 @@ import React from "react";
import { Text, StyleSheet, Pressable } from "react-native";
export default function Button(props) {
const { onPress, title = "Button", color = "black" } = props;
const {
onPress,
title = "Button",
color = "black",
textColor = "white",
} = props;
return (
<Pressable
style={({ pressed }) => [
@ -17,7 +22,7 @@ export default function Button(props) {
]}
onPress={onPress}
>
<Text style={styles.text}>{title}</Text>
<Text style={[styles.text, { color: textColor }]}>{title}</Text>
</Pressable>
);
}
@ -36,6 +41,6 @@ const styles = StyleSheet.create({
lineHeight: 21,
fontWeight: "bold",
letterSpacing: 0.25,
color: "white",
//color: textColor,
},
});