Skip to content

ReadableNativeMap cannot be cast to java.lang.stringΒ #4

@andrew-schenk

Description

@andrew-schenk

Crashes on Android when using source={{uri: ...}}

Image.getSize(this.props.source.uri, (width, height) => {

needs to be

let source = this.props.source;
if (typeof(source) !== "string") {
source = this.props.source.uri;
}
Image.getSize(source, (width, height) => {

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

    Issue actions