|
|
@ -8,29 +8,14 @@ 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", |
|
|
|
textAlignVertical: "center", |
|
|
|
alignSelf: "center", |
|
|
|
}} |
|
|
|
> |
|
|
|
{label} |
|
|
|
</Text> |
|
|
|
<Text style={{ color: txtColor, fontWeight: "bold", textTransform: "uppercase" }}>{label}</Text> |
|
|
|
</View> |
|
|
|
</TouchableOpacity> |
|
|
|
); |
|
|
|