Victory-native: <VictoryChart> throws error on android but works fine on iOS

Created on 21 Feb 2017  路  5Comments  路  Source: FormidableLabs/victory-native

When I used Victory Chart and a few other components of Victory native in my code it throws an error on my android emulator as shown in the below picture. But, it runs fine on iOS:
_
screen shot 2017-02-21 at 12 54 26 pm
_

Most helpful comment

Hi there,
I think I found what was wrong with the TextShadowNode cast.
I created a PR here to fix it: https://github.com/react-native-community/react-native-svg/pull/268

If it cannot be merged for some reason, do not hesitate to use our fork: https://github.com/bamlab/react-native-svg

All 5 comments

I'm getting the same issue.

Hi there I get the exact same issue. There seems to be a version conflict between react-native-svg and react-native
Which version of React Native do you use ?
I had this error with

"react-native": "0.41.2",
"react-native-svg": "^5.1.5",

Hi there,
I think I found what was wrong with the TextShadowNode cast.
I created a PR here to fix it: https://github.com/react-native-community/react-native-svg/pull/268

If it cannot be merged for some reason, do not hesitate to use our fork: https://github.com/bamlab/react-native-svg

Confirmed working with @guitoof's branch -

yarn add bamlab/react-native-svg

Looks like this is a victory-native issue. Somewhere a Text component is being rendered from react-native instead of react-native-svg (according to the bug filed there)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChrisGatzo picture ChrisGatzo  路  3Comments

xkawi picture xkawi  路  4Comments

WhyX picture WhyX  路  6Comments

safaiyeh picture safaiyeh  路  6Comments

udfalkso picture udfalkso  路  4Comments