-
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
button auto full width #2962
Comments
full={false} will not work, because when you pass full = {true} then it will apply full button style , other wise in default, button will get full width of the parent container because it is using flex for button style. you have to give width to the buttons. |
OH! i see , i thought the button have a default width , because the button show in docs is not full width |
This should be mentioned in the docs, it is quite misleading. |
I actually found the doc to be terrible, lot of actual examples do not match the result ;( |
What is the solution to get it to look like the docs? |
I've solved it adding a 'alignSelf' style property on the Button:
|
applying this won't let you use block and full properties |
Hi @sorxrob, Button doesn't lose any styles using Hi @kin-for-test, you can definitly use the solution provided by @cleybertandre for adjusting width. |
Hi @kin-for-test , we have fixed this issue. Changes are done on master branch. latest version of Native base has been released. |
@hanykumar |
I've upgraded the version, but it doesn't seem to be working yet |
Hi @jassonxian , this issue is not fixed in the latest version. But it will be fixed in next version. You will need to import NativeBase from master branch for its working. |
Hi @hanykumar, is this fix not merged yet? |
Still seeing this issue today as well. Last release was over 2 months ago. This seems like a rather big issue that should have received a fix by now, not? As someone that hasn't used native base and wanted to give it a go for the first time, this makes me quite hesitant to move forward. 😟 |
expect
but the view in android vm like
code
i try full={false} but still not work
The text was updated successfully, but these errors were encountered: