question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: undefined is not a function (near '...(0, _reactNativeSkia.useDerivedValue)...')

See original GitHub issue

Hi, 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.

Simulator Screen Shot - iPhone 13 - 2022-08-13 at 02 14 04

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chrispadercommented, Sep 12, 2022

react-native-skia versions above 0.1.139 are not compatible with RN 0.69.

You can either upgrade to react-native-graph@0.2.0 or use react-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/

1reaction
Leoputera2407commented, Aug 31, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native - TypeError: undefined is not a function (near '...(0 ...
Hi I have this error popping up all the time: TypeError: undefined is not a function (near ' ...
Read more >
undefined is not a function (near '...(0 , _reactNavigation ...
I am trying to move src code from a project into a new expo project. When I run the simulator, I see an...
Read more >
useDerivedValue | React Native Reanimated
This hook allows for creating shared value reference that can change in response to updating of one or more other shared values.
Read more >
undefined is not a function (near '...(0,_reactNavigationStack ...
Coding example for the question TypeError: undefined is not a function (near '...(0,_reactNavigationStack.createDrawerNavigator)-React Native.
Read more >
Reanimated 2 - the new approach to creating animations in ...
I encourage you to start using Reanimated 2 in your React Native projects. In this article, we are not going to focus so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found