coinjar / react-native-wagmi-charts

A sweet & simple chart library for React Native that will make us feel like We're All Gonna Make It.
MIT License
588 stars 116 forks source link

Expo sdk 48 issue TypeError: undefined is not an object (evaluating ‘segments[0][1]’) #133

Open TankPOOJA opened 1 year ago

TankPOOJA commented 1 year ago

IMG_8853

IMG_8854

I updated expo sdk, after that app crashed with this error, any solution for this issue. "expo": "^48.0.0", "react-native": "^0.71.7", "react-native-wagmi-charts": "^2.3.0", "react-native-svg": "13.4.0", "react-native-reanimated": "^2.14.4", "react-native-gesture-handler": "^2.5.0",

TankPOOJA commented 1 year ago

any solution?

arancauchi commented 1 year ago

Thanks for the issue @TankPOOJA, is there any way your could create a basic reproduction repro for this and send it over? I can't seem to replicate this issue.

JiriHoffmann commented 1 year ago

Ran into the same issue. I believe the root cause of it is when LineChart.Provider is provided with an empty array for the data prop.

An empty string is passed to parse from react-native-redash causing it to error out. https://github.com/coinjar/react-native-wagmi-charts/blob/767ab380271b18fbb44ef8969bc68031d65e589f/src/charts/line/Chart.tsx#L93

gerryfletch commented 1 year ago

Yeah, empty data prop was the cause for me. Thanks @JiriHoffmann

honeybadger26 commented 7 months ago

Hi @TankPOOJA. Were you able to resolve this issue by setting a non-empty data prop?