When I have a background image:
<Image style={{flex: 1, width: null, height: null, resizeMode: 'cover'}} source={require('../images/background.png')}>
<!-- Children -->
</Image>
I am expecting my image to cover the entire screen while keeping the image's aspect ratio. (See this SO question why I'm using width: null, height: null
.)
However, if the image width is far smaller than the height, the image is centered which crops the top.
Question: How do I make the image start from the top instead, much like background-position: 50% 0
would in the web?