Open mileung opened 8 years ago
Agree with MLeung
How to change button text font-size?
@tarun29061990 I had to fork the repo and modify the source code. There's a lot of hard code, so makes sense why you can't resize the buttons.
@MiLeung What about this https://github.com/xinthink/react-native-material-kit?
@tarun29061990 Thanks, that library looks like you can resize the buttons. Not sure if you can adjust fontSize though.
It has said here: https://github.com/react-native-material-design/react-native-material-design.github.io/blob/master/components/button.md
You have to put button in a parent to resize it.
In React Native you can achieve it using a Button inside a View and set the width of View
import { View, Button } from "react-native"; <View style={{ width: 200}}><Button title="Login"/></View>
@engrrbilal You are right.
Cannot resize button size with width or height.
Buttons do not resize for some reason. I'm pretty sure I'm doing it the wrong way, but can't seem to find any documentation on it (or the raised property).