Skip to content

Is it possible to have <img>s with local URIs? #134

Open
@pekkanikolaus

Description

@pekkanikolaus

Does react-native-htmlview support <img> tags with images local to the project?

I can't seem to get it to work with any path, even when they work as expected when passing them to a RN <Image> element.

So this works:

<Image source={require('../Images/logo.png')}>

but this doesn't:

 const htmlContent = `<img src="../Images/logo.png">`;
 <HTMLView value={htmlContent} />

I'm getting

Failed to get size for image: ../Images/logo.png

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions