Added: custom style for DropDownPicker, added icons for DropDownPicker, in style.js added new color for placeholder; Edited: Component for button, where you can now define background, border, ... by class

This commit is contained in:
2024-05-12 21:26:44 +02:00
parent 114ab257b2
commit 2d06e0fb12
8 changed files with 221 additions and 14 deletions

View File

@@ -7,6 +7,8 @@ export default function Button(props) {
title = "Button",
color = "black",
textColor = "white",
buttonStyle,
textStyle,
} = props;
return (
<Pressable
@@ -19,10 +21,13 @@ export default function Button(props) {
: "black",
},
styles.button,
buttonStyle,
]}
onPress={onPress}
>
<Text style={[styles.text, { color: textColor }]}>{title}</Text>
<Text style={[styles.text, { color: textColor }, textStyle]}>
{title}
</Text>
</Pressable>
);
}