Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andreibahachenka opened this issue Sep 18, 2023 · 5 comments

Comments

@andreibahachenka
Copy link

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
Copy link

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
Copy link
Author

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

@Abirpal202049
Copy link

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
Copy link

arhipy97 commented Oct 4, 2023

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
Copy link

arhipy97 commented Oct 4, 2023

@Abirpal202049 ,
My differences with you:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants