-
Notifications
You must be signed in to change notification settings - Fork 24.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
flexWrap wrapping unexpectedly with alignItems: 'flex-end' #48527
Comments
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.76.5. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Here is the code that causes the unexpected wrapping.
|
@NickGerleman do you have context on this one? |
Hi, kindly share me further details so that will rise a PR for this issue. |
@krishpranav what additional details do you need? |
does the above issue only happens on the pixel device or it is reproducing on other devices? |
AFAIK it can happen on any device. It seems to depend on the screen width and text. I have had it happen on iOS devices as well. |
let me check it get back to you. |
@krishpranav
|
yes, I am able to reproduce the issue. working on this issue. @cortinico can you assign me this issue? |
Description
This bug/issue seems to be screen size dependent. In the provided example with the used text the incorrect wrapping is visible on the Pixel 7 screen. The same issue is also on ios, but there I did not test which text + device causes the too early overflow. When the text is changed (shortened or lengthened) the overflow disappears until the correct overflow occurs. Maybe this has something to do with the way the Views are nested, but I still don't understand how this is expected behaviour.
Pixel 7 the text wraps, but it should not yet and the backgroundColor is also only displayed on the top Text.
Pixel 4 the same text does not wrap:
Steps to reproduce
React Native Version
0.76.1
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@alex_p8/gnarly-orange-ramen
Screenshots and Videos
The text was updated successfully, but these errors were encountered: