-
Notifications
You must be signed in to change notification settings - Fork 957
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
ButtonGroup never renders last button as final button #516
Comments
Thanks for reporting this |
Can you, please, also share |
I never specified such object. I used the default styles. |
|
Here is an idea of how you can quickly solve this - View it on Snack <ButtonGroup style={{ width: '100%' }}>
<Button style={{ flex: 1 }}>L</Button>
<Button style={{ flex: 1 }}>M</Button>
<Button style={{ flex: 1 }}>R</Button>
</ButtonGroup> The code above makes ButtonGroup have a width of a container, also it makes it children to have equal width. So it can render as expected and can be only controlled by I don't think that by default ButtonGroup should take the full width of a container, but we will work on it to get rid of this workaround. Thanks |
the |
However it is used in a container, so it can affect
|
ah I see, the styles for the container are
|
@J-Cake glad to say the fix for your issue is available. Try updating to beta
|
sweeet, worked to perfection. Thanks everyone! |
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
I want to use a
ButtonGroup
likeand I followed the documentation. But I also tried
with a third button but same thing. The last button is not rounded and the button group does not take up 100% of the width of the container.
Expected behavior:
The ButtonGroup takes up the full width of the container and rounds the last button.
Steps to reproduce:
Related code:
Other information:
OS, device, package version
Android 9.0, Galaxy S8, UI Kitten v4.1.0
The text was updated successfully, but these errors were encountered: