Using this library in RN 67 throws this warning: new NativeEventEmitter() was called with a non-null argument without the required removeListeners method.)
It can cause unreliable side effects and issues on android where errors are some times thrown and click events become non-responsive.
Description
Using this library in RN 67 throws this warning:
new NativeEventEmitter()
was called with a non-null argument without the requiredremoveListeners
method.)It can cause unreliable side effects and issues on android where errors are some times thrown and click events become non-responsive.
The fix is simple: https://github.com/software-mansion/react-native-reanimated/issues/2297#issuecomment-904056543
Related to
Steps to reproduce
Upgrade any decent project to RN 67 and use the latest of this library.
Expected behavior
No warnings and side effects
Actual behavior
Warning in console and side effects
Code snippet
Environment
Affected platforms