react-native-reanimated: app crashes if debugging mode is enabled

Description

I am using react-native-reanimated as a dependency of react-native-draggable-flatlist. Since I started using reanimated, app crashes if debugging mode is enabled. Once I uninstall reanimated package then app runs in debugging mode perfectly.

Screenshots

Screenshot_1611898820

Steps To Reproduce

  1. Just install the react-native-reanimated as per docs and then enable debugging mode. You can encounter this error

Expected behavior

debugging mode should work as usual

Actual behavior

app crashes if debugging mode is enabled

Snack or minimal code example

No specific code is required. Just installing the package is sufficient.

Package versions

  • React: “16.13.1”
  • React Native: “0.63.2”
  • React Native Reanimated:“2.0.0-rc.2”
  • NodeJS: v10.16.2

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 9
  • Comments: 26 (1 by maintainers)

Most upvoted comments

It looks like this was only fixed on iOS, any word on a fix for Android?

I was on react-native-reanimated version 2.3.1 and after upgrading it to 2.4.1, it worked. Thank you @valery-lavrik

This is not related just to reanimated and the debugger support is not a thing reanimated can “fix”, since it’s because of react native architecture (or better, turbo modules). While it’s annoying that the app just crashes when you enable remote debugging, it doesn’t seem that reanimated can do anything more than adding a huge warning box to the installation instructions.

I can confirm this doesn’t work on android, I am also getting the error “Invariant Violation: Calling synchronous methods on native modules is not supported in Chrome.” Using latest version 2.5.0

By any chance, did you find a solution @anutting?

It was fixed for me after being updated to react-native-reanimated 2.4.0

Thanks @valery-lavrik For me, it just worked by updating to react-native-reanimated 2.4.1

npm i react-native-reanimated@next

@jakub-gonet Thank you for your response and suggestion.

I m not sure if it is appropriate to ask here. Can you please have a look at this Stack Overflow question regarding Flipper, if you have time?