vault-development / react-native-svg-uri

Render SVG images in React Native from an URL or static file
849 stars 335 forks source link

Library not working on RN 0.60.5 #194

Closed msqar closed 5 years ago

msqar commented 5 years ago

I think it is because i've upgraded from 0.60.4 to 0.60.5 but, the library stopped working all of a sudden on both platforms iOS and Android.

All red screens and of course, the SVG icons are not being rendered because of these errors:

On android it throws:

Error while updating property 'd' of a view managed by: RNSVGPath

null
length=86; index=86

The stacktrace shows Java classes like `ViewManagerPropertyCache.java`

On iOS throws: Exception thrown while executing UI block: - [__NSCFString characterAtIndex:]: Range or index out of bounds.

Any idea of what's going on?

Versions: RN: 0.60.5 react-native-svg (^9.8.1 react-native-svg-uri (^1.2.3)

msqar commented 5 years ago

Okay, there is an error with the latest react-native-svg version 9.8.1. A PR was already created for it. In the meantime, if anyone is under the same situation, please use 9.7.1. It works with this version for now.