Skip to content

Question: Why is there a div with background image and an img tag for the Image component? #1907

@okwast

Description

@okwast

Hey there 👋

First of all thank you for all the effort here.
In our company we have a React Native app and a React web frontend and finally we tried React Native for Web on the first feature and it works really great 👍

But we discovered one thing, I couldn't quite find the reason for:
If I add an <Image source={{uri: ...}} /> the result contains a div with a background image in the styles and an actual img tag.
Probably there is a good reason for this and I'm curious what that reason could be.

If anyone could give a short explanation that would make a curious man happy 🙂

Thanks in advance.

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