-
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
Can not change size of Badge element #159
Comments
@yaronlevi Docs has been updated |
Can you give me a link? I can not seem to find the change |
@yaronlevi The same link which you shared |
@yaronlevi Try clearing your cache |
@yaronlevi Check the replacing component for Badge |
@yaronlevi |
@yaronlevi Sorry for misguidance. |
Hi @yaronlevi, can you check the contents of |
Ah ok my mistake. I've updated the npm to look at the repositoty. |
Good to know! |
Unless the badge can be made smaller, it's useless. |
Here's my workaround. Simply scale the whole thing instead of using font size and line height. |
According to this cheat sheet I should be able to change the badge's size. I've tried:
<Badge success style={{fontSize:5, width:10}}>99</Badge>
But I get those errors in runtime:
So how can I change the badge's size?
"native-base": "^0.5.7"
"react": "^15.3.0"
"react-native": "^0.32.0"
Run on iOS simulator.
The text was updated successfully, but these errors were encountered: