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

No ViewManager defined for class RNSVGCircle #148

Closed
abeikverdi opened this issue Sep 26, 2016 · 9 comments
Closed

No ViewManager defined for class RNSVGCircle #148

abeikverdi opened this issue Sep 26, 2016 · 9 comments

Comments

@abeikverdi
Copy link

This is the error I got after installing the package and linking it with android:
capture

@vance-liu
Copy link

the same +1

@vance-liu
Copy link

It's the native code linking problem. just look at #135, follow and work well.

@legg
Copy link

legg commented Sep 29, 2016

Works for me with
"react": "15.3.2",
"react-native": "0.33.1",
"react-native-svg": "4.3.1"

I can replicate the error with [email protected]

@iqbalshirol
Copy link

I just created my activity as a sub-class of ReactActivity and it fixed this problem.

@lai32290
Copy link

I'm having this issue for [email protected]

@iqbalshirol
Copy link

@lai32290 I have fixed it for the version (0.52.1) using the ReactActivity. Please let me know if you have imported the correct SVGPackage.

@lai32290
Copy link

@iqbalshirol , do you mean to android/app/src/main/com/my-project/MainActivity.java extend ReactActivity? My project is already extending it.
The process what I did is:

$ react-native init myProject
$ cd myProject
$ npm install react-native-svg --save
$ react-native link react-native-svg

@msand
Copy link
Collaborator

msand commented Jan 30, 2018

@lai32290 Do you have the latest version of react-native-cli? Try npm i -g react-native-cli
Worked just fine yesterday at least: https://github.com/msand/AwesomeProject/commits/master

@lai32290
Copy link

@msand it's working for me, finally, thanks for your help!

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

7 participants