how to fix error NativeAnimatedModule on react native

683 Views Asked by At

I got this error after installing the react-native-share & react-native-view-shot library

Excessive number of pending callbacks: 501. Some pending callbacks that might have leaked by never being called from native code: {"18939":{"module":"NativeAnimatedModule","method":"startAnimatingNode"},"18944"

the effect is that the application becomes slow in response when navigating

2

There are 2 best solutions below

1
On
0
On

This code has a problem with the animation controller that responds with scrolling movement, which causes a memory leak in the app. If you are using hooks such as 'useEffect' or 'useCallback,' make sure to check if the cleanup is properly done.