software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.13k stars 982 forks source link

Application crashing after changing component tree #2839

Closed RalissonMattias closed 7 months ago

RalissonMattias commented 7 months ago

Description

The application breaks when I use the gesture detector and change the component tree and save the file.

Obs: I have another application that breaks whenever I try to render a component with the gesture detector, but I can only reproduce it in the demo when I change the component tree

Steps to reproduce

  1. Clone my repo
  2. Comment or uncomment the line 25/31 and save the file

Snack or a link to a repository

https://github.com/RalissonMattias/ghbasetest

Gesture Handler version

2.16.0

React Native version

0.73.6

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Real device

Device model

Redmi Note 11

Acknowledgements

Yes

j-piasecki commented 7 months ago

I believe the changes necessary to support RN 0.74 on the new arch cause it to crash on 0.73. Would it be possible for you to check if it still crashes for you on 0.74?

RalissonMattias commented 7 months ago

I believe the changes necessary to support RN 0.74 on the new arch cause it to crash on 0.73. Would it be possible for you to check if it still crashes for you on 0.74?

I tested by updating the RN version and works fine when I use only react-nativegesture-handler, but when I try to use with react-native-reanimated strange things happen. I'm going to close this issue because I believe it's someone else's problem, if I find any more issues I'll report back. Thank you 🙏