-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
No component found for view with name "RNSVGCircle" #279
Comments
up |
I have same problem. |
*** caution!! *** this commit downgrade the react-native from v0.42.2 to v0.41.2, so that we use react-native-svg. TODO: if following issue is solved, we must upgrade react-native to latest version. - software-mansion/react-native-svg#279
Any feedback from the creator on this? |
Have the same problem. Did someone find a solution? |
@YanaKopyshchyk you have to upgrade this svg library. It has been recently released |
how recently @Snorlock ? using |
Damn, no luck using master as well! :S |
@Snorlock I have the latest version 5.1.6, but, unfortunately, the problem is still there |
Thats weird, have you cleared derived data? Done a new pod install? |
I deleted node_modules and reinstalled everything, maybe something wrong with react-native link. @eemebarbe Have you solved this problem? |
I never used react-native link. |
I don't use cocoapods and swift. Anyway, I think the problem is in the mismatch of the versions :( |
@YanaKopyshchyk you solved the problem in any way? |
@mariobento yes, but the problem was not with react-native-svg. I use react-native-maps and everything started working when I updated it to 0.13.0. ( Before the update everything worked except svg, but I had 'build failed' ) |
I had this problem. I didn't remember that I used yarn to install react-native-svg and used brew (Homebrew) to install yarn, but then I updated yarn with brew by running in the terminal "brew upgrade yarn" and then ran "yarn upgrade" to save the new dependencies. After that, everything is working fine in yarn 0.24.4 and react-native-svg@5.1.8. I really hope this helps anyone struggling as I did. |
I'm running into this problem as well. Created a new project ( Has anyone come up with a solution? dependencies: PS:
|
So the way I got around this problem was by individually importing in each component. |
I got the "No component found.." error as well. I have: I tried linking and unlinking, reinstalling and restarting all the things. In my case, I noticed this error when running
and in line 1267 in my
so I changed it to:
Not exactly sure how that happened but it ended up working for me. |
What eventually worked for me was building and running with Xcode (pressing play in Xcode vs |
Same for me "No component found for view with name "RNSVGCircle". Andregreen fix outputs only red rectangles. Building in xcode fails with the error: "ld: library not found for -lRNSVG-tvOS |
I run svg example on iOS simulator with Expo and it works fine: https://docs.expo.io/versions/v18.0.0/sdk/svg.html |
For me this solves the problem #387 . Remove “libRNSVG-tvOS.a” in xcode and restart the project. Svg will work just fine. |
I resolved this issue by adding
then |
I ran into this about a month ago and am really sad to see this is still outstanding. I haven't figured out a way to get around it.
Tried a lot of the suggestions here but to no avail. Per @alanbo - |
@dwilt Have you tried to run e.g. https://github.com/magicismight/react-native-svg-example or https://github.com/msand/SVGPodTest if you want cocoapods? |
@msand No, I haven't tried either of those. Regarding the cocoapods, I don't need that if I do the |
True, was thinking it might be good to eliminate some variables, by trying to build and run and known to work repo. Cocoapods is only needed if you want that to handle configuring your native dependencies for your xcode project, e.g. if you want fbsdk installed in a CI compatible way etc. |
So, I'm sure that repo works but it's also a RN version behind (it's last commit was 2 months ago). Are you saying I should try to install the CocoaPods and go from there? |
Either that, or you can checkout a few commits earlier: msand/SVGPodTest@4e36ccd |
Or, just do the steps I did: Remove libRNSVG-tvOS.a manually using xcode. |
This should work if following the linking instructions. Closing for now. |
Didn't work. |
On iOS, only using the example components from the repo. React v. 15.4.2, React-Native v. 0.42.0, and react-native-svg v. 5.1.5
(I did react-native link it)
The text was updated successfully, but these errors were encountered: