Skip to content

Crash on Android release build #18

@anilios

Description

@anilios

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

Activity

cbotman

cbotman commented on Feb 12, 2021

@cbotman

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

cbotman commented on Feb 12, 2021

@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"
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @anilios@cbotman

        Issue actions

          Crash on Android release build · Issue #18 · wonday/react-native-image-cache-wrapper