From 7ff18f290b1fbc980990ec0088aafc58cfd2ea56 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Fri, 31 Mar 2017 18:02:29 -0700 Subject: [PATCH] Fix Warning/Yellow Box so it does not mess up app layout when opened. Reviewed By: fkgozali Differential Revision: D4808601 fbshipit-source-id: c15a7aa4514ea21798ceabca075189478596e0a2 --- Libraries/ReactNative/YellowBox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/ReactNative/YellowBox.js b/Libraries/ReactNative/YellowBox.js index 2042431c3..ec30f1a84 100644 --- a/Libraries/ReactNative/YellowBox.js +++ b/Libraries/ReactNative/YellowBox.js @@ -403,7 +403,9 @@ const elevation = Platform.OS === 'android' ? Number.MAX_SAFE_INTEGER : undefine var styles = StyleSheet.create({ fullScreen: { height: '100%', - elevation: elevation + width: '100%', + elevation: elevation, + position: 'absolute', }, inspector: { backgroundColor: backgroundColor(0.95),