TypeError: undefined is not a function (near '...(0, _reactNativeSkia.useDerivedValue)...')
See original GitHub issueHi, thanks for this amazing library.
OK so I installed the library and rendered the line chart but there was this problem that the pointer was not showing up and it was just partially stuck at the top left of the container.
To fix that I followed this fix given in #26 , where I just reverted the skia version to 0.1.123
.
After implementing above fix I re-run the app and tried to render the chart but it got crash giving the following error:
` ERROR TypeError: undefined is not a function (near ‘…(0, _reactNativeSkia.useDerivedValue)…’)
This error is located at: in AnimatedLineGraph (at LineGraph.tsx:7) in LineGraphImpl (at portfolio/index.js:663) in RCTView (at View.js:32)`
I did some investigation and found the cause of the above error, it seems like when animated={true}
it crashes the App with above error but works just fine when animated={false}
but I need animated=true to enable enablePanGesture.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
react-native-skia
versions above0.1.139
are not compatible with RN 0.69.You can either upgrade to
react-native-graph@0.2.0
or usereact-native-skia@0.1.138
.Maybe Yarn’s selective dependeny resolutions are helpful to you: https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/
Downgrade to RN 0.68. The older Skia module isn’t compatible with RN0.69.X https://github.com/Shopify/react-native-skia/issues/624