Check out the release notes: https://github.com/facebook/react-native/releases/tag/v0.46.1
Like @Norfeldt, I ran into this issue but was unable to find any reference to actual usage in the aforementioned release notes or docs. Having discovered a solution, I'm adding the following to expand directions for future travelers beyond 'RTFD':
Per https://github.com/facebook/react-native/blob/dc97e3fb4e1a297d18b9361710290468060626fc/Libraries/Image/ImageBackground.js, ImageBackground accepts two style props – style and imageStyle – which are (obviously) applied to the internal View and Image respectively. It's also worth noting that height and weight values from the container style are applied to the image style automatically.
Feel free to send a PR to the docs - they're hosted on this repo.
Most helpful comment
Like @Norfeldt, I ran into this issue but was unable to find any reference to actual usage in the aforementioned release notes or docs. Having discovered a solution, I'm adding the following to expand directions for future travelers beyond 'RTFD':
Per https://github.com/facebook/react-native/blob/dc97e3fb4e1a297d18b9361710290468060626fc/Libraries/Image/ImageBackground.js,
ImageBackgroundaccepts two style props –ÂstyleandimageStyle– which are (obviously) applied to the internalViewandImagerespectively. It's also worth noting thatheightandweightvalues from the container style are applied to the image style automatically.