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.

Value is undefined, expected an Object

See original GitHub issue

I copied the whole thing in your example and is not working. How can I fix it?

const data = [
    { x: 1453075200, y: 1.47 }, { x: 1453161600, y: 1.37 },
    { x: 1453248000, y: 1.53 }, { x: 1453334400, y: 1.54 },
    { x: 1453420800, y: 1.52 }, { x: 1453507200, y: 2.03 },
    { x: 1453593600, y: 2.10 }, { x: 1453680000, y: 2.50 },
    { x: 1453766400, y: 2.30 }, { x: 1453852800, y: 2.42 },
    { x: 1453939200, y: 2.55 }, { x: 1454025600, y: 2.41 },
    { x: 1454112000, y: 2.43 }, { x: 1454198400, y: 2.20 },
  ]

  const points = monotoneCubicInterpolation({ data, range: 40 })

  return (
    <ChartPathProvider data={{ points, smoothingStrategy: 'bezier' }}>
      <ChartPath height={150} stroke="yellow" width={SIZES.width} />
    </ChartPathProvider>
)

simulator_screenshot_EFDA435A-1912-4745-B33B-85DC51641A0F

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
imavvi4510commented, Nov 14, 2021

“react-native”: “0.66.3”, “react-native-reanimated”: “2.2.4”, “@rainbow-me/animated-charts”: “^1.0.0-alpha.5”, @nqdung16 works for me

0reactions
benjaminharringtonrosecommented, Nov 20, 2021

My solution was to copy my source code and paste it into an expo app. I know that’s not ideal but the main focus of the app I’m working are these badass charts. If you do this, make sure you run expo install dep1, dep2, dep3.... so expo creates the project with compatible versions. Good luck fellas!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Value is undefined, expected an Object · Issue #1758 - GitHub
Description Hi, I am trying to pass list of objects that includes fields as function type to a component. But when I try...
Read more >
React-native Value is undefined, expected an Object
Its my first time running expo go on IOS for this app but this error keeps coming up, possibly related to dependencies?
Read more >
undefined - JavaScript - MDN Web Docs - Mozilla
The global undefined property represents the primitive value undefined. It is one of JavaScript's primitive types.
Read more >
Troubleshooting common problems | React Native Reanimated
TypeError: Cannot convert undefined value to object on someVariable._closure ​. This error frequently happens when metro cache is not updated.
Read more >
React Native render error Value is undefined expected a ...
Related Query · React Native render error Value is undefined expected a object · React Native error: Element type is invalid: expected a...
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