From 00d65870fe33594735702f7820710fd0f0751d07 Mon Sep 17 00:00:00 2001 From: "Andrew Y. Chen" Date: Thu, 1 Sep 2016 16:22:57 -0700 Subject: [PATCH] Improve ReactRootView's onMeasure error message Reviewed By: AaaChiuuu Differential Revision: D3806888 fbshipit-source-id: 0433a7950b9673a2195b8dfdedb12b4c90156184 --- .../src/main/java/com/facebook/react/ReactRootView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java index bd591e968..d6ae11913 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java @@ -83,7 +83,8 @@ public class ReactRootView extends SizeMonitoringFrameLayout implements RootView if (widthMode == MeasureSpec.UNSPECIFIED || heightMode == MeasureSpec.UNSPECIFIED) { throw new IllegalStateException( "The root catalyst view must have a width and height given to it by it's parent view. " + - "You can do this by specifying MATCH_PARENT or explicit width and height in the layout."); + "You can do this by specifying MATCH_PARENT or explicit width and height in the " + + "layout. widthMode=" + widthMode + ", heightMode=" + heightMode); } setMeasuredDimension(