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

Error: NoViewManager defined for Class RNSVGrect #1

Closed
fawwaz opened this issue Jan 6, 2017 · 2 comments
Closed

Error: NoViewManager defined for Class RNSVGrect #1

fawwaz opened this issue Jan 6, 2017 · 2 comments

Comments

@fawwaz
Copy link

fawwaz commented Jan 6, 2017

Helo @wonsikin , i got the NoViewManager defined for Class RNSVGrect exception, do you know how to handle that ?

Edit: I've read this one : software-mansion/react-native-svg#148, and I can guarantee that I've linked the react-native-svg dependency correctly. However, it still does'nt work. Do you have any advice ?

@wonsikin
Copy link
Owner

wonsikin commented Jan 6, 2017

@fawwaz Which platform does your app run? Android or iOS? If android, just try the command in the
following:

cd /path/to/your/react-native-project/
cd android
./gradlew clean
cd .. && react-native run-android

@fawwaz
Copy link
Author

fawwaz commented Jan 6, 2017

Android, well , finally I've found the solution.
In my case, I just need to re-run react-native run-android again. It seems that react-native-svg add some java dependency on MainApplication.java. I forget to "update" the java dependency that installed in my device so once I run react-native run-android gradle will "download" com.horcrux.svg.RNSvgPackage as said in software-mansion/react-native-svg#135

@fawwaz fawwaz closed this as completed Jan 6, 2017
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

2 participants