react-native-image-cache-wrapper
react-native-image-cache-wrapper copied to clipboard
Crash on Android release build
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
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
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"
}