取消关注按钮背景色修改

This commit is contained in:
fatsheep1919 2020-06-07 14:44:51 +08:00
parent 33c030934e
commit daf7a95b1b

View file

@ -115,7 +115,8 @@ export default class UserIntro extends Component {
: ( : (
followed > 0 followed > 0
? <Button title="取消关注" ? <Button title="取消关注"
backgroundColor={Color.primary} outline={true}
color={Color.primary}
borderRadius={5} borderRadius={5}
buttonStyle={localStyle.followButton} buttonStyle={localStyle.followButton}
onPress={this._onDeleteFollow.bind(this)} onPress={this._onDeleteFollow.bind(this)}
@ -153,16 +154,19 @@ const localStyle = StyleSheet.create({
justifyContent: 'center' justifyContent: 'center'
}, },
followButton: { followButton: {
width: 100, width: 90,
height: 30, height: 28,
marginTop: 20, marginTop: 20,
marginRight: 3, marginRight: 5,
paddingTop: 5, paddingTop: 5,
paddingBottom: 5, paddingBottom: 5,
alignItems: 'center',
justifyContent: 'center'
}, },
userTitle: { userTitle: {
fontSize: 22, fontSize: 22,
marginTop: 30, marginTop: 30,
marginRight: 3,
fontWeight: 'bold', fontWeight: 'bold',
color: '#000' color: '#000'
}, },