Value is undefined, expected an Object
See original GitHub issueI 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>
)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
“react-native”: “0.66.3”, “react-native-reanimated”: “2.2.4”, “@rainbow-me/animated-charts”: “^1.0.0-alpha.5”, @nqdung16 works for me
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!