Skip to content
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

[iOS] flex-grow: 1 not working in Button #3882

Closed
jahirfiquitiva opened this issue May 10, 2023 · 0 comments · Fixed by #3887
Closed

[iOS] flex-grow: 1 not working in Button #3882

jahirfiquitiva opened this issue May 10, 2023 · 0 comments · Fixed by #3887
Labels

Comments

@jahirfiquitiva
Copy link

Current behaviour

Currently, in iOS, adding flex-grow: 1 to a Button, does nothing. It works fine with Android and Web.

Expected behaviour

The Button should grow to fill the available parent width.

How to reproduce?

https://snack.expo.dev/@jahirfiquitiva/rnp-button-flex-grow

Preview

Android iOS
Shot 2023-05-10 at 15 24 46@2x Shot 2023-05-10 at 15 26 01@2x

What have you tried so far?

Wrapping the button inside a View with flex-grow: 1 is a workaround. Not ideal, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant