Code Monkey home page Code Monkey logo

Comments (9)

jadeydi avatar jadeydi commented on July 2, 2024 18

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.

from react-native-material-design.

engrrbilal avatar engrrbilal commented on July 2, 2024 18

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>

from react-native-material-design.

skptricks avatar skptricks commented on July 2, 2024 4

Refer this post : https://www.skptricks.com/2018/07/how-customize-button-in-react-native.html

from react-native-material-design.

perjerz avatar perjerz commented on July 2, 2024

Agree with MLeung

from react-native-material-design.

tarun29061990 avatar tarun29061990 commented on July 2, 2024

How to change button text font-size?

from react-native-material-design.

mileung avatar mileung commented on July 2, 2024

@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.

from react-native-material-design.

tarun29061990 avatar tarun29061990 commented on July 2, 2024

@mileung What about this https://github.com/xinthink/react-native-material-kit?

from react-native-material-design.

mileung avatar mileung commented on July 2, 2024

@tarun29061990 Thanks, that library looks like you can resize the buttons. Not sure if you can adjust fontSize though.

from react-native-material-design.

usamaabrar22 avatar usamaabrar22 commented on July 2, 2024

@engrrbilal You are right.

from react-native-material-design.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.