coinjar/react-native-wagmi-charts

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

TankPOOJA opened this issue · 5 comments

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

any solution?

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.

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.

const parsedPath = React.useMemo(() => parse(path), [path]);

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

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