|
|
@ -8,14 +8,29 @@ function Btn({ label, onPress, bgColor, txtColor, style={} }) { |
|
|
|
return ( |
|
|
|
<TouchableOpacity style={{ marginTop: 15 }} onPress={onPress}> |
|
|
|
<View |
|
|
|
style={[style, { |
|
|
|
style={[ |
|
|
|
style, |
|
|
|
{ |
|
|
|
paddingHorizontal: 40, |
|
|
|
paddingVertical: 7, |
|
|
|
backgroundColor: bgColor, |
|
|
|
borderRadius: 6, |
|
|
|
}]} |
|
|
|
height: 48, |
|
|
|
flexDirection: "row", |
|
|
|
}, |
|
|
|
]} |
|
|
|
> |
|
|
|
<Text style={{ color: txtColor, fontWeight: "bold", textTransform: "uppercase" }}>{label}</Text> |
|
|
|
<Text |
|
|
|
style={{ |
|
|
|
color: txtColor, |
|
|
|
fontWeight: "bold", |
|
|
|
textTransform: "uppercase", |
|
|
|
textAlignVertical: "center", |
|
|
|
alignSelf: "center", |
|
|
|
}} |
|
|
|
> |
|
|
|
{label} |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</TouchableOpacity> |
|
|
|
); |
|
|
|