software-mansion/react-native-gesture-handler

New architecture crashes on React Native < 0.74 (`Assertion failed: (hasNativeState<T>(runtime))`)

m-bert opened this issue · 2 comments

Description

As reported in this comment, Gesture Handler crashes on new architecture. Here is log from Xcode:

Assertion failed: (hasNativeState<T>(runtime)), function getNativeState, file jsi-inl.h, line 220.

After small investigation we found out that it is caused by changes introduced in #2766 (getting shadowNode in RNGestureHandlerModule.mm)

Steps to reproduce

Just clone reproduction repository and try to run iOS app with new architecture enabled

Snack or a link to a repository

https://github.com/Under-Warz/rngh_sample

Gesture Handler version

2.16.2

React Native version

< 0.74

Platforms

iOS

JavaScript runtime

None

Workflow

None

Architecture

Fabric (New Architecture)

Build type

None

Device

None

Device model

Irrelevant

Acknowledgements

Yes

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

After discussion, we decided that our libraries (react-native-gesture-handler, react-native-reanimated, etc.) will support new architecture starting from React Native 0.74. Therefore, we won't be adding backward compatibility in this case.