-
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
Rendering issue of components with border style - components appear stretched while rendering a new screen #42604
Comments
I had a look how borders are rendered and did some modifications to
From the above, looks like the I don't see any direct changes in this part of the file that happened between
@cortinico any suggestions where to look further into that? I tried to add |
Is this happening also on Android by any chance? |
No, the issue has never been observed on Android. I can confirm that the issue is not reproducible on old architecture. And the issue started happening only after upgrading to |
@jankosecki Did you find any quick solution for this? |
suffer from the same problem |
Same here on 0.73.4 :/ |
any update? |
We have the same problem |
Following the stack trace of Adding back at the start of
and at the end of the block:
seems to resolve the issue in the reproduction repository. Is it possible that the expected change was to just remove the feature flag but maintain
which is probably desired behaviour in Patch to apply with
|
I can cofnrim this seems to fix the issue also for us |
Great work @jankosecki 🥇 iOS: Native (before / after)
|
Fixed properly in 0.73.6 (d979491) instead of a patch which just reverts the changes. We've been using the version for a while and no issues have been spotted so far. @ikevin127 my patch simply reverts some unwanted changes but the code is considered to be computation heavy (that's why it was removed in the first place). You might want to upgrade to 0.73.6 instead of using my patch to bring an actual fix to the issue. |
@jankosecki Sure, Expensify already has an open PR to upgrade to v0.74 which once merged will remove the patch. I noticed that with the patch, first paint is not instant - but it fixes out issue for now so all good. Thanks again! |
Description
After upgrading to
0.73.2
we've started observing a rendering issue of components that contain someborder
styles - when screens are rendered components like that are temporarily unnaturally stretched as the new screen enters the view area.We didn't see issues like that using
0.72.6
.Sometimes it's the border, sometimes the background of the component and sometime the issue cannot be observed at all
In our app we have some other components, which would sometimes appear as stretched when entering new screen, but the sample project, with a list of components was the easiest way to reproduce it
Steps to reproduce
yarn setup
yarn ios
Reload
button on main screen or go to the next screen using+
button in the top right cornerReact Native Version
0.73.2
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/jankosecki/rn-border-issue-repro/tree/main
Screenshots and Videos
recording.mov
recording2.mov
The text was updated successfully, but these errors were encountered: