yjb94 / react-native-squircle-skia

Skia based squircle for React Native. draws with Figma squirce style
MIT License
23 stars 1 forks source link

[Update Required] usePath is deprecated in new Skia version #3

Open mrkp opened 2 years ago

mrkp commented 2 years ago

undefined is not a function (near '...(0, _$$_REQUIRE(_dependencyMap[5], "@shopify/react-native-skia").usePath)

Hey, great work putting together this library! Was integrating it into a project of ours and noticed that usePath isn't used in the latest Skia version and has created a breaking change.

Was wondering if you could update the Squircle.tsx file to accommodate for this new change?

Best!

yjb94 commented 2 years ago

hi thanks for your interest! but i am not in the situation to fix it up… can you make a pull request for me? and i think i can handle it. otherwise i won’t be able to handle it as you want..(

sorry to say this but still thanks for your interest! best :)

mrkp commented 2 years ago

Hey, makes sense. Currently also don't have the time but will try to make time for it in the coming weeks to submit the PR. The current solution is locking the version number of Skia in the package.json -> "@shopify/react-native-skia": "0.1.118",