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.
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
componentDidMountand 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.