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

(iOS) Invariant Violation: Native component for "RNSVGSvgView" does not exist #566

Closed
kylehagler opened this issue Jan 5, 2018 · 12 comments

Comments

@kylehagler
Copy link

screenshot 2018-01-05 03 17 37

"dependencies": { "better-fetch": "^1.1.2", "firebase": "^4.8.1", "lodash": "^4.17.4", "react": "16.0.0", "react-native": "0.51.0", "react-native-svg": "^6.0.1-rc.1", "react-redux": "^5.0.6", "redux": "^3.7.2", "redux-logger": "^3.0.6", "redux-thunk": "^2.2.0" }

@bestcoder0
Copy link

Try using new SvgPackage() instead

@kylehagler
Copy link
Author

@bestcoder0 where? what is this?

@kylehagler
Copy link
Author

screenshot 2018-01-05 14 58 48

Here is xcode if that helps

@bestcoder0
Copy link

I use it in mainapplication.java file for android.. not sure where you should use in ios.

@ghost
Copy link

ghost commented Jan 8, 2018

@kylehagler I have the same problem. Have you solved it?

@kylehagler
Copy link
Author

@594904020 I was having this problem in my project that I started using react-native cli with react-native init

I ended up starting a new project from scratch with create-react-native-app and now SVG works fine.

@bennettrahn
Copy link

bennettrahn commented Jan 16, 2018

@594904020 Hey - I've also been having this problem. I don't really want to completely recreate my app. Did you ever figure out a not total restart fix to this problem?

@ghost
Copy link

ghost commented Jan 17, 2018

@bennettrahn Manual link native libraries can solve problems

@OrencioRodolfo
Copy link

Even with manual linking, I still get this error 😔 . Any updates about this?

@msand
Copy link
Collaborator

msand commented Feb 12, 2018

A bug in react-native currently links the tvOS library into the iOS project as well.

Until the fix is released: facebook/react-native#13783 facebook/react-native@a63fd37

Follow the instructions here: #544

@OrencioRodolfo
Copy link

@msand managed to solve it with the provided instructions. Many thanks!

@msand
Copy link
Collaborator

msand commented Feb 13, 2018

I guess this is just linking issues then. I'll go ahead and close for now.

@msand msand closed this as completed Feb 13, 2018
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

5 participants