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

Fails on iOS with React Native 0.77 and 0.78 (New Arch) – TypeError: component.hasAnimatedRef is not a function

Open iy-913 opened this issue 9 months ago • 9 comments

With React Native 0.77 and 0.78 (New Architecture), react-native-collapsible-tab-view does not work on iOS and throws the following error: TypeError: component.hasAnimatedRef is not a function (it is undefined)

Dependencies Used • "react-native-pager-view": "^6.7.0" • "react-native-reanimated": "^3.17.1"

Additional Information • The issue only affects react-native-collapsible-tab-view. • react-native-tab-view works fine with the same dependencies. • The issue seems specific to React Native 0.77 and 0.78 (New Arch) on iOS.

iy-913 avatar Mar 04 '25 23:03 iy-913

It seems to be a bug in reanimated: I patched reanimated 3.17.1 locally with the changes from this PR as they're not out yet and I don't get this error anymore.

Edit: Now the app itself crashes on iOS 18.3 after scrolling up and down on the second tab (first seems to be fine) so that's fun.

Edit: the crash happens on React Native 0.77.1. It doesn't happen on 0.78, but scrolling on any of the other tabs is janky in the simulator.

mortuosplango avatar Mar 05 '25 12:03 mortuosplango

sama issue for me, I using react-native 0.78.0 (with new arch)

edritech93 avatar Mar 06 '25 03:03 edritech93

+1

shuo-hiwintech avatar Mar 06 '25 07:03 shuo-hiwintech

+1 same issue for me

However, as @mortuosplango mentioned, applying the patch from the linked PR does the trick for now (I'm on RN 0.78) and it's fairly smooth.

cebrakadabra avatar Mar 15 '25 06:03 cebrakadabra

"react-native": "0.76.6" same issue

XushbaxtovNodirbek avatar Apr 13 '25 07:04 XushbaxtovNodirbek

same issue with expo 53 and react native 0.79.x also, anybody found any work arround ?

for me ios app is getting crashed when i switched to second tab.

ursnj avatar May 19 '25 07:05 ursnj

I had the same issue and solved it by removing the "snapThreshold" property, maybe it helps someone.

Swampi995 avatar Jun 02 '25 09:06 Swampi995

@ursnj same here when switching tabs in new arch it crashes!

itsnyx avatar Aug 02 '25 23:08 itsnyx

anyone has any fix for this ?

this is only reason i can't use new arch!

itsnyx avatar Aug 03 '25 15:08 itsnyx