-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling Button's text in React Native #1853
Comments
Hello @silvestreh, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you! |
You have to follow this object structure https://github.com/ant-design/antd-mobile-samples/blob/master/rn-custom-ui/inputStyle.js |
Thanks! For people who might get here through a Google search here's how I solved using @paranoidjk hints: import ButtonStyle from 'antd-mobile/lib/button/style/index.native';
StyleSheet.create({
...ButtonStyle,
defaultRawText: {
color: 'red'
}
}); |
@silvestreh how can i do? |
It does look like the
Button
component takes astyles
prop which you later use to apply theText
styles.ant-design-mobile/components/button/index.native.tsx
Line 84 in c30d049
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.
The text was updated successfully, but these errors were encountered: