react-native-collapsible-tab-view icon indicating copy to clipboard operation
react-native-collapsible-tab-view copied to clipboard

App crashing with `Tabs.FlashList` when using with `@shopify/[email protected]`

Open thecoorum opened this issue 5 months ago • 7 comments

When using the Tabs.FlashList opening a screen with the component crashes the app while development. What I also noticed is that it seems to be working with hot reload after using for example Tabs.FlatList and then changing it to the Tabs.FlashList

Also, not related to the crash issue, but does it make sense to remove the @shopify/flash-list from dev and peer dependencies to allow using pre-release versions?

thecoorum avatar Jul 14 '25 13:07 thecoorum

same issue

CornerSkyless avatar Jul 19 '25 09:07 CornerSkyless

same issue

dhruvpvx avatar Jul 29 '25 10:07 dhruvpvx

Same, was going crazy trying to nail it down. It works fine when using Tabs.FlatList.

TowhidKashem avatar Aug 03 '25 08:08 TowhidKashem

Ok I found the fix, in the FlashList.tsx component, change this:

  useEffect(() => {
    setRef(name, recyclerRef);
  }, [name, recyclerRef, setRef]);

to this:

  useEffect(() => {
    setRef(name, ref);
  }, [name, ref, setRef]);

you can use patch package or fork the repo until a fix PR is merged.

TowhidKashem avatar Aug 03 '25 18:08 TowhidKashem

same issue the patch you showed fixed my crash @TowhidKashem

itsnyx avatar Aug 15 '25 15:08 itsnyx

+1

GeorgeHop avatar Sep 23 '25 19:09 GeorgeHop

This should be fixed by #483

andreialecu avatar Sep 23 '25 20:09 andreialecu