react-native-material-design icon indicating copy to clipboard operation
react-native-material-design copied to clipboard

change height of button

Open texas697 opened this issue 9 years ago • 3 comments

how is done? thanks

texas697 avatar Mar 06 '16 16:03 texas697

As I can read in material design guidelines, button should have 36px height, and that's what height got out button. Probably that's why it's not configurable.

NoWay1201 avatar Mar 07 '16 10:03 NoWay1201

I made PR to add this feature. Here it is: #44 . You need to use override prop. It should look like this: <Button overrides={{height: 100}} /> To set height to 100.

NoWay1201 avatar Mar 08 '16 16:03 NoWay1201

I wrote about this problem in issue #106. Your approach is good for one button. But what if you want to set every button in your app. Then you have to go through your app and rewrite every single instance of <Button /> :/

xotahal avatar Sep 14 '16 21:09 xotahal