react-native-reanimated icon indicating copy to clipboard operation
react-native-reanimated copied to clipboard

[IOS] reloading App crashes in Xcode using gesture-handler

Open ealmiladi opened this issue 1 year ago • 1 comments

Description

runOnJS crashes iOS simulator on reload with the following code:

running on XCode 14.1

const tapGesture = Gesture.Tap()
   .withTestId(`${testID}-tap`)
   .maxDistance(1)
   .onTouchesDown(() => {
     currState.value = State.BEGAN;
   })
   .onTouchesUp(() => {
     if (onPress) runOnJS(onPress)();
   })
   .onTouchesCancelled(() => {
     currState.value = State.UNDETERMINED;
   })
   .onEnd(() => {
     currState.value = State.UNDETERMINED;
   });

https://github.com/software-mansion/react-native-gesture-handler/issues/2319

Steps to reproduce

  1. run Gesture function that access to shareValue variables
  2. reload app
  3. see crash

Snack or a link to a repository

https://snack.expo.dev/JHArrUvUm

Reanimated version

2.13.0

React Native version

0.70.6

Platforms

iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

ealmiladi avatar Dec 17 '22 20:12 ealmiladi

Crash method onTouchesDown & onTouchesUp. onStart/onEnd — work fine.

anatooly avatar Feb 19 '24 17:02 anatooly