react-native-animated-charts icon indicating copy to clipboard operation
react-native-animated-charts copied to clipboard

Animation doesn't work after upgrading to expo sdk 49, reanimated 3

Open andreibahachenka opened this issue 2 years ago • 5 comments

The chart animation stops working after upgrading to expo sdk 49 that includes upgrading reanimated to the 3 version I didn't find any dependencies that can affect this Does anyone have solution?

andreibahachenka avatar Sep 18 '23 13:09 andreibahachenka

Same Issue

 ERROR  Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes

Abirpal202049 avatar Sep 22 '23 08:09 Abirpal202049

it's not the same. I was able to run, but animation itself doesn't work

andreibahachenka avatar Sep 22 '23 08:09 andreibahachenka

Can you tell me mw what version of @rainbow-me/animated-charts and react-native-reanimated are you using ?

I am using these versions:

   "@rainbow-me/animated-charts": "^1.0.0-alpha.6",
    "expo": "~49.0.11",
    "expo-status-bar": "~1.6.0",
    "react": "18.2.0",
    "react-native": "0.72.4",
    "react-native-reanimated": "^3.5.4"

Abirpal202049 avatar Sep 22 '23 09:09 Abirpal202049

To fix the chart visualization - change the invocation of useSharedValue. The second params have to be removed all over the library. For instance:

-  const dataQueue = useSharedValue(valuesStore.current.dataQueue, 'dataQueue');
+  const dataQueue = useSharedValue(valuesStore.current.dataQueue);

arhipy97 avatar Oct 04 '23 13:10 arhipy97

@Abirpal202049 , My differences with you:

"expo": "^49.0.0",
"react-native-reanimated": "~3.3.0",

arhipy97 avatar Oct 04 '23 13:10 arhipy97