设置背景图片的位置(即网络中的“ background-position-x”和“ background-position-y”)

log*_*icy 5 react-native

当我有背景图片时:

<Image style={{flex: 1, width: null, height: null, resizeMode: 'cover'}} source={require('../images/background.png')}>
    <!-- Children -->
</Image>
Run Code Online (Sandbox Code Playgroud)

我希望我的图像能覆盖整个屏幕,同时保持图像的高宽比。(请参阅这个问题,为什么我要使用width: null, height: null。)

但是,如果图像宽度远小于高度,则图像居中,从而裁剪顶部。

问题:如何使图像从顶部开始,就像background-position: 50% 0在网络上一样?