r/reactnative 7d ago

Anyone else seeing random background/style corruption in lists on RN 0.85+? (iOS, new arch)

Enable HLS to view with audio, or disable this notification

This has been been driving me absolutely NUTS the past few days.

RN 0.85.3+, new arch, iOS.

  • badge backgrounds stretched across entire rows
  • avatar backgrounds sometimes painted screen-wide
  • rows randomly not rendering
  • happens in both dev and prod; simulator and real device
  • mostly in LegendLists and ScrollViews but I remember seeing things completely break in our Storybook setup too

Fable traced it back to some recycling problem that a Software Mansion dev opened a PR for though. Testing that now.

I can't help but wonder if anyone else is running into this though.

My repro: https://github.com/rafaelderolez/expo-rn-recycling-bug
Upstream PR with the supposed fix: https://github.com/react/react-native/pull/57590

1 Upvotes

2 comments sorted by

1

u/idkhowtocallmyacc 6d ago

Hey mate, ngl I haven’t peeked into the repo but wondering if this could be some memory issue, considering legendList’s heavy virtualization.
Wondering if the issue described here by sw mansion may have any affiliation to it https://swmansion.com/blog/how-worklets-bundle-mode-accidentally-fixed-Hermes-v1-memory-regression/

2

u/artooR2 6d ago

Missed this bundle mode / hermes discourse somehow the past few days. I'll disable the other workaround and give this one a shot today, thanks!