Skip to content

How-to: make a square view #184

@ide

Description

@ide

I was trying to make a square view where width=100% and height=width. The approach I'm taking is to measure the parent view in componentDidMount and use its dimensions to manually set the size of the square view, one render frame later. This seems reasonable and mostly good but I want to know if I'm overlooking a way to do this in a single render pass.

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