react-native-animated-charts
react-native-animated-charts copied to clipboard
Value is undefined, expected an Object
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>
)
facing the same issue. initially when enableHermes was set to true, it was crashing without any warnings then I turned it off and got the above screen
@nqdung16 did you found any solution
facing the same issue. initially when enableHermes was set to true, it was crashing without any warnings then I turned it off and got the above screen
@nqdung16 did you found any solution
Sadly I haven't found any solutions yet. I tried with a fresh project and it worked. But when I just copied the whole to my current project, I got that error again
"react-native": "0.66.3", "react-native-reanimated": "2.2.4", "@rainbow-me/animated-charts": "^1.0.0-alpha.5", @nqdung16 works for me
"react-native": "0.66.3", "react-native-reanimated": "2.2.4", "@rainbow-me/animated-charts": "^1.0.0-alpha.5", @nqdung16 works for me
It's still not working with the same error bro
Unfortunately I'm experiencing the same issue. I'm working with:
"react-native": "0.66.3",
"@rainbow-me/animated-charts": "^1.0.0-alpha.6",
"react-native-reanimated": "^2.3.0-beta.3",
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!