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

Crash on Android release build #18

Open
anilios opened this issue Jan 29, 2021 · 2 comments
Open

Crash on Android release build #18

anilios opened this issue Jan 29, 2021 · 2 comments

Comments

@anilios
Copy link

anilios commented Jan 29, 2021

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

@cbotman
Copy link

cbotman commented Feb 12, 2021

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
Copy link

cbotman commented Feb 12, 2021

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"
 }

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