Styling Button's text in React Native
See original GitHub issueIt does look like the Button
component takes a styles
prop which you later use to apply the Text
styles.
I can’t find documentation on how to change the text color. I noticed I can switch between black and white by using the type='primary'
prop, but I need other colors 😄
Any hints would be greatly appreciated.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Styling a React Native button - Expo Documentation
React Native exports a <Button> component that exposes the native button element for Android, iOS, and the web. The <Button> component accepts title...
Read more >Button - React Native
A basic button component that should render nicely on any platform. Supports a minimal level of customization.
Read more >How to create and style custom buttons in React Native
Add styles to buttons in React Native by adding more props ... Since it's a custom button component, you have the liberty of...
Read more >React-Native Button style not work - Stack Overflow
The React Native Button is very limited in what you can do, see; Button. It does not have a style prop, and you...
Read more >Button - React Native Elements
Buttons are touchable elements used to interact with the screen and to perform and operation. They may display text, icons, or both. Buttons...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You have to follow this object structure https://github.com/ant-design/ant-design-mobile/blob/master/components/button/style/index.native.tsx for example
https://github.com/ant-design/antd-mobile-samples/blob/master/rn-custom-ui/inputStyle.js
@silvestreh how can i do?