react-native-image-cache-wrapper icon indicating copy to clipboard operation
react-native-image-cache-wrapper copied to clipboard

Crash on Android release build

Open anilios opened this issue 4 years ago • 2 comments
trafficstars

Everything is working fine on iOS (Debug+Release) and Android(Debug).

But with Android release build app starts crashing saying: error while updating property 'src' of a view managed by: rctimageview

anilios avatar Jan 29 '21 11:01 anilios

Came here after encountering the same issue. Works fine in debug builds, but crashes in release builds.

Fatal Exception: com.facebook.react.bridge.JSApplicationIllegalArgumentException
Error while updating property 'src' of a view managed by: RCTImageView

Caused by java.lang.reflect.InvocationTargetException
java.lang.reflect.Method.invoke

Caused by com.facebook.react.bridge.UnexpectedNativeTypeException
Value for uri cannot be cast from ReadableNativeMap to String

cbotman avatar Feb 12 '21 07:02 cbotman

I see there's a merged pull request that references this error, but hasn't been released yet: #15

I can confirm that pull request fixes the issue. While waiting for a new release, you can do this:

"dependencies": {
-    "react-native-image-cache-wrapper": "^1.0.7"
+   "react-native-image-cache-wrapper": "https://github.com/wonday/react-native-image-cache-wrapper.git"
 }

cbotman avatar Feb 12 '21 07:02 cbotman