mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 17:30:38 +08:00
Improve ReactRootView's onMeasure error message
Reviewed By: AaaChiuuu Differential Revision: D3806888 fbshipit-source-id: 0433a7950b9673a2195b8dfdedb12b4c90156184
This commit is contained in:
committed by
Facebook Github Bot 5
parent
1d571c5ed5
commit
00d65870fe
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user