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

View config not found for name RNSVGPath #144

Closed
suark opened this issue Jul 6, 2018 · 12 comments
Closed

View config not found for name RNSVGPath #144

suark opened this issue Jul 6, 2018 · 12 comments

Comments

@suark
Copy link

suark commented Jul 6, 2018

I've tried looking for some issue related in the react-native-svg and I couldn't find it. But here is what I'm seeing.
simulator screen shot - iphone 6 - 2018-07-05 at 15 44 16

This is happening when passing values as

<AnimatedCircularProgress
  size={74}  
  width={4}  
  prefill={50}  
  fill={50}  
  rotation={180}  
  tintColor='#00e0ff'  
  backgroundColor='white'   
/>

I don't believe I'm passing anything incorrectly.

We are using "react-native": "0.55.4"

I believe this issue only started happening after some recent changes, mainly updating from an older version of react-native.

@Jacse
Copy link
Collaborator

Jacse commented Jul 7, 2018

Have you installed and linked react-native-svg?

@tarekbazine
Copy link

tarekbazine commented Jul 8, 2018

I am also having an error with RNSVGPath, but i am working with expo (@Jacse so react-native-svg is preinstalled with it) check my issue

@suark
Copy link
Author

suark commented Jul 9, 2018

@Jacse I'll recheck that there isn't a flaw in the react-native-svg install.

@suark
Copy link
Author

suark commented Jul 9, 2018

@Jacse
screen shot 2018-07-09 at 9 13 51 am

Just checking and it appears like their is no issue with have react-native-svg installed and linked.

Do you think it's possible that breaking changes have happened in their library?

@Jacse
Copy link
Collaborator

Jacse commented Jul 13, 2018

@suark does react-native-svg work for you? I.e. can you use that library without problems? Might be an installation issue.

@sakuramoon0203
Copy link

_20180719152248
I had meet the same question, you can try to upgrade the react version

@Jacse
Copy link
Collaborator

Jacse commented Jul 26, 2018

Try uninstalling the library and installing version 1.0.1 from npm.

@LuongTruong
Copy link

I got an error in version react-native 0.55.4 too but in Android. It because of the build.gradle use "implementation" instead of "compile".

I think iOS get error because of the way it link. I suggest you should link by manual instead of using react-native link command

@roysG
Copy link

roysG commented Aug 16, 2018

Same for me in android, Version react: 0.54.4
Any updates?

@freddessert
Copy link

freddessert commented Aug 16, 2018

From the README of react-native-svg library:
Android
npm install react-native-svg --save

Append the following lines to android/settings.gradle:

include ':react-native-svg' project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android')
Insert the following lines inside the dependencies block in android/app/build.gradle:

compile project(':react-native-svg')
Open up `android/app/src/main/java/[...]/MainApplication.java

Add import com.horcrux.svg.SvgPackage; to the imports at the top of the file
Add new SvgPackage() to the list returned by the getPackages() method. Add a comma to the previous item if there's already something there.

@markusl
Copy link
Collaborator

markusl commented Dec 29, 2018

Hi @suark could you confirm if you are still seeing this issue with the latest version? I checked with iOS and did not see any problems. Also, the example app is updated and works flawlessly.

BR,
Markus

@Jacse
Copy link
Collaborator

Jacse commented Feb 26, 2019

Closing since this issue seems resolved

@Jacse Jacse closed this as completed Feb 26, 2019
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

8 participants