transporter-app/components/button.js

26 lines
714 B
JavaScript
Raw Normal View History

2024-06-26 23:24:26 +03:00
import {View, Text, Pressable} from "react-native";
const Button = ({text, color = "#E5352D", style, ...props}) => {
return (
<Pressable {...props}>
<View style={{
paddingTop: 20,
paddingBottom: 20,
borderRadius: 20,
display: "flex",
borderColor: color,
color: color,
borderStyle: 'solid',
borderWidth: 2,
marginBottom: 16,
...style
}}>
<Text style={{fontWeight: "bold", color, fontSize: 16, textAlign: "center"}}>{text}</Text>
</View>
</Pressable>
)
}
export default Button