We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a problem with buttons with flex: 1 on iOS - buttons are not visible.
flex: 1
Buttons should have proper width and be visible like on Android or web.
https://snack.expo.dev/@szado/rnp-ios-button-problem?platform=ios but1 should occupy the entire available width instead it is invisible.
but1
IOS: Expected behaviour:
The text was updated successfully, but these errors were encountered:
I am encountering a very similar issue with v5.14.1 which i suspect was caused by #4634 My Button is not showing on iOS in a flex layout as below:
Button
<View style={{ flexDirection: 'row', alignItems: 'center', alignSelf: 'center', marginVertical: 8, marginHorizontal: 16 }} > <Button mode="contained-tonal" style={{ flex: 1 }}> Test </Button> </View>
But will show as soon as I set a height to the button style:
height
<View style={{ flexDirection: 'row', alignItems: 'center', alignSelf: 'center', marginVertical: 8, marginHorizontal: 16 }} > <Button mode="contained-tonal" style={{ flex: 1, height: 40 }}> Test </Button> </View>
This is working fine in 5.14.0
I use this layout to create a button that stretches to the whole parent width. Any other suggestion on how to achieve that would be appreciated.
Sorry, something went wrong.
flex
I will take a look at that
No branches or pull requests
Current behaviour
There is a problem with buttons with
flex: 1
on iOS - buttons are not visible.Expected behaviour
Buttons should have proper width and be visible like on Android or web.
How to reproduce?
https://snack.expo.dev/@szado/rnp-ios-button-problem?platform=ios
but1
should occupy the entire available width instead it is invisible.Preview
IOS:


Expected behaviour:
Your Environment
The text was updated successfully, but these errors were encountered: