react-native-animated-charts icon indicating copy to clipboard operation
react-native-animated-charts copied to clipboard

Value is undefined, expected an Object

Open nqdung16 opened this issue 3 years ago • 6 comments

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

nqdung16 avatar Nov 14 '21 12:11 nqdung16

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

imavvi4510 avatar Nov 14 '21 14:11 imavvi4510

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

nqdung16 avatar Nov 14 '21 15:11 nqdung16

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

imavvi4510 avatar Nov 14 '21 15:11 imavvi4510

"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

nqdung16 avatar Nov 14 '21 17:11 nqdung16

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",

benjaminharringtonrose avatar Nov 20 '21 06:11 benjaminharringtonrose

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!

benjaminharringtonrose avatar Nov 20 '21 14:11 benjaminharringtonrose