[fix] ImageBackground with <Text> children

Prevent Text from displaying behind the Image.
This commit is contained in:
Nicolas Gallagher
2018-05-20 20:36:54 -07:00
parent 206a236df2
commit 6a2252891a

View File

@@ -63,7 +63,8 @@ class ImageBackground extends Component<*> {
// This workaround should be removed after implementing proper support of
// intrinsic content size of the <Image>.
width: style.width,
height: style.height
height: style.height,
zIndex: -1
},
imageStyle
]}