rn-bootstrap-buttons icon indicating copy to clipboard operation
rn-bootstrap-buttons copied to clipboard

how to modify the height of button ?

Open welson327 opened this issue 9 years ago • 1 comments

I try to custom my button with following:

< Button buttonType="info" buttonStyle={buttonStyle} onPress={ ...} >Sign In < /Button>

buttonStyle = { // override height: 40, // original is 48 paddingTop: 12, paddingBottom: 12 }

but it is fail, like

2017-10-27 3 59 54

the text inside the button is not vertical center!

welson327 avatar Oct 27 '17 08:10 welson327

i got the answer

just use textStyle attr.

eg: < Button buttonType="info" buttonStyle={buttonStyle} textStyle={{ height:xxx, paddingTop: xxx, paddingBottom: xxx }} onPress={ ...} >Sign In < /Button>

welson327 avatar Nov 01 '17 09:11 welson327