react-native-reanimated
react-native-reanimated copied to clipboard
[IOS] reloading App crashes in Xcode using gesture-handler
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
- run Gesture function that access to shareValue variables
- reload app
- 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
Crash method onTouchesDown & onTouchesUp. onStart/onEnd — work fine.