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

Invariant Violation #47

Open
daniellrsouza opened this issue Oct 22, 2019 · 2 comments
Open

Invariant Violation #47

daniellrsouza opened this issue Oct 22, 2019 · 2 comments

Comments

@daniellrsouza
Copy link

I'm getting an error:

Invariant Violation: View config not found for name path. Make sure to start component names with a capital letter.

This error is located at:
in path (created by LogOut)
in svg (created by LogOut)
in LogOut (at List.js:37)

In List.js (line 37) I used the icon like that:

<LogOut onPress={handleLogout} size={25} />

and imported like this:

import {LogOut} from 'react-feather';

@raghuchahar007
Copy link

Any update on this?

@virgil9306
Copy link

virgil9306 commented Apr 23, 2020

Same.

Are you using React Native? I am with Expo. I think it does not play well with svg.

So you need your SVGs to use React Native SVG. However react-feather does NOT use React Native SVG.

Perhaps an approach like this is the solution:
https://github.com/colmbrady/react-native-feather
Basically it recreated all the icons in a React Native SVG-friendly way.

Or, for now I am using: https://github.com/oblador/react-native-vector-icons

I believe there is no solution in using this repo I think it is web-only...

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

3 participants