Strict mode bug: TypeError: Cannot assign to read-only property 'callbackId' #5525
Labels
Needs review
Issue is ready to be reviewed by a maintainer
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snippet of code, snack or repo is provided
Description
Specifically when there is a
framecallback.setActive
invocation within a Gesture callback, the error is thrownTemporarily removing
'use strict'
from the hook fixes the problem:react-native-reanimated/src/reanimated2/hook/useFrameCallback.ts
Line 1 in f40ee24
Steps to reproduce
Snack or a link to a repository
https://github.com/osamaqarem/reanimated-strict-mode-bug/blob/main/App.tsx
Reanimated version
3.6.1
React Native version
0.73.1
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Debug app & dev bundle
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: