How to force an image to be full width and maintain aspect ratio using React Native?
<p>I have an image that I pull down from a URL. I do not know the dimensions of this image ahead of time.</p>
<p>How do I style / layout the image so that it is the full width of the parent view and the height is calculated so that the aspect ratio is maintained?</p>
<p>I have tried using <code>onLoad</code> in 0.34.0-rc.0 and the height / width are both 0 in <code>event.nativeEvent.source</code>.</p>
<p>The image is in a <code>&lt;ScrollView/&gt;</code>. I am not after a full screen image.</p>