From 6a2252891a95f707cea5d53d6ded0b55b9dd6144 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 20 May 2018 20:36:54 -0700 Subject: [PATCH] [fix] ImageBackground with children Prevent Text from displaying behind the Image. --- packages/react-native-web/src/exports/ImageBackground/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native-web/src/exports/ImageBackground/index.js b/packages/react-native-web/src/exports/ImageBackground/index.js index 38da8283..537de101 100644 --- a/packages/react-native-web/src/exports/ImageBackground/index.js +++ b/packages/react-native-web/src/exports/ImageBackground/index.js @@ -63,7 +63,8 @@ class ImageBackground extends Component<*> { // This workaround should be removed after implementing proper support of // intrinsic content size of the . width: style.width, - height: style.height + height: style.height, + zIndex: -1 }, imageStyle ]}