invertase / react-native-material-design

React Native UI Components for Material Design
http://react-native-material-design.github.io
MIT License
3.15k stars 365 forks source link

change height of button #40

Open texas697 opened 8 years ago

texas697 commented 8 years ago

how is done? thanks

NoWay1201 commented 8 years ago

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 commented 8 years ago

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.

xotahal commented 8 years ago

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