Skip to content

[Image] Set correct image height #494

@coryoso

Description

@coryoso

I want to display images from the internet and want to make them as wide as the parent view, which is possible by setting the flex value. But I also want to make the image as high as width * aspectRatio.
Neither StyleSheet.create nor the direct style tag gives access to the image width and aspectRatio.
Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions