rainbow-me / react-native-animated-charts

Set of components and helpers for building complex and beautifully animated charts
MIT License
922 stars 110 forks source link

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

Open andreibahachenka opened 1 year ago

andreibahachenka commented 1 year ago

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?

Abirpal202049 commented 12 months ago

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
andreibahachenka commented 12 months ago

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

Abirpal202049 commented 12 months ago

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"
arhipy97 commented 11 months ago

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 commented 11 months ago

@Abirpal202049 , My differences with you:

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