margelo / react-native-graph

📈 Beautiful, high-performance Graphs and Charts for React Native built with Skia
https://margelo.io
MIT License
2.08k stars 118 forks source link

"@shopify/react-native-skia").useValue is not a function (it is undefined) #98

Closed daxaxelrod closed 8 months ago

daxaxelrod commented 9 months ago

Seems like useValue was removed in favor of useSharedValue

https://github.com/Shopify/react-native-skia/issues/1936

jameBroa commented 9 months ago

I had this issue, initially. Are you using Expo? I solved it by using npx expo install for all dependencies.

daxaxelrod commented 9 months ago

Runs a bit deeper than that unfortunately. My project is using the latest version of skia (0.1.238) where use value has been completely removed. Downgrading to the version used by this package, 0.1.185, comes with its own set of problems. I’ve started an upgrade here https://github.com/margelo/react-native-graph/pull/99 and it now builds but the example app isn’t working quite right. Clone it and try for yourself!