Victory-native: Native component RNSVGSvgView does not exist

Created on 30 Nov 2017  路  15Comments  路  Source: FormidableLabs/victory-native

Just upgraded to
"react-native-svg": "6.0.0",
"victory-native": "^0.16.1"

Now when i try to show a chart (exact same previously working code from earlier versions of the above) gives me the error: Native component RNSVGSvgView does not exist

It's on iOS btw.

Most helpful comment

I had the same error. This issue seems to happen when you have a Podfile in your react-native project. In this case, the automatic linking of react-native-svg with react-native link react-native-svg fails. You need to manually link react-native-svg by following the first two steps in the docs (https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking)

All 15 comments

same problem

Hope we get an update asap from the team

@danieldelouya @blackkey520 Thanks for this issue. I'll try to reproduce.

@boygirl Thanks. I also get 'No component found for view with name RNSVGLine" when using a line chart

Same problem =(

Same here, any workarounds?

Still waiting as well

Same here +1

@boygirl Any news regarding this? Can't update RN/React/VictoryNative until this has been resolved.

Update:
I upgraded to:
"victory-native": "^0.16.1"
"react-native-svg": "^6.0.1-rc.1"
"react-native": "^0.51.0"

And now it works. Found out a library i was using was using an older version of react-native-svg which caused the problem.

Yes, I believe this issue was caused by version mis-match. I haven't been able to reproduce it.

I have been stuck on this for some time and have reproduced the error, here are my dependencies:

{
  "dependencies": {
    "moment": "^2.19.3",
    "query-string": "^5.0.1",
    "react": "16.0.0",
    "react-intl": "^2.4.0",
    "react-native": "^0.51.0",
    "react-native-elements": "^0.18.2",
    "react-native-svg": "^6.0.1-rc.1",
    "react-native-vector-icons": "^4.4.2",
    "react-navigation": "^1.0.0-beta.21",
    "victory-native": "^0.16.1"
  }
}

I have also tried removing the node_modules forlder and reinstalling, and linking with react-native link.

The other thing I tried was installing the versions on the react-native-svg.

I had the same error. This issue seems to happen when you have a Podfile in your react-native project. In this case, the automatic linking of react-native-svg with react-native link react-native-svg fails. You need to manually link react-native-svg by following the first two steps in the docs (https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking)

I'm on IOS.

First, I got ld: library not found for -lRNSVG-tvOS when I built with react-native run-ios
Then,I delete libRNSVG.a in Build Phases with XCode

Retry, It works.

@ruinangel @xanderberkein your information was what I needed. To consolidate the solution that worked for me:

(A note this happened after I updated NodeJs, so that might have something to do with it, however I introduced SVG's first thing after updating so I can't be sure).

Fix post update issues:

  1. remove node modules
  2. install node modules

Fix the error as described above:

  1. Follow steps 1 and 2 as @xanderberkein mentioned described here https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking.
  2. Make sure not to include the apple tv (there seem to be a big there).
  3. if you used react native link there will be references to the libRNSVG.a package. You can remove those.

Another note this is how I solved this issue, I am by no means an expert with Native code and would like to point out that an issue has to be made most likely on the RNSVG package. I am happy to do that but require some guidance in getting more information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isabel-thx picture isabel-thx  路  5Comments

ararog picture ararog  路  4Comments

kkemple picture kkemple  路  6Comments

ericschaal picture ericschaal  路  4Comments

jzhw0130 picture jzhw0130  路  3Comments