Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for victory-native (https://github.com/FormidableLabs/victory-native) #121

Closed
witbybit opened this issue Mar 27, 2017 · 2 comments
Closed

Comments

@witbybit
Copy link

Is victory-native supported with create-react-native-app?

I tried this example https://github.com/sibelius/victory-native-demo-crna which uses create-react-native-app but it didn't work. I got the following error message - "Error while updating property 'd' in shadow node of type:RNSVGPath" (see attached image).

I am already discussing this with the author but I just wanted to check in case it's a known issue that victory-native doesn't work with create-react-native-app.

screenshot_20170327-161515

@anp
Copy link
Contributor

anp commented Mar 27, 2017

Hi! victory-native does work when loaded in Expo, we use it in one of our test projects:

https://github.com/expo/native-component-list/blob/master/screens/SVGScreen.js

with this package.json:

https://github.com/expo/native-component-list/blob/master/package.json#L17

You can load the app in the Expo client at this URL:

https://expo.io/@community/native-component-list

You can find the victory-native example if you tap the ^ icon in the top right and scroll down to the SVG example.

I'd recommend trying this with the latest RN and SDK versions supported, the example project you linked uses SDK 14. See the versions guide for information about upgrading.

cc @sibelius

@anp anp closed this as completed Mar 27, 2017
@AvijitDutta95
Copy link

Hi! I'm also getting the same error message, but after saw your comment I just look over your test project, but I cannot understand the usage of react-native-svg in your SVGScreen.js file.
And I'm just trying with your code for render victory chart and getting this error:

capture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants