don't block attaching ReactRootView on measuring

Reviewed By: achen1

Differential Revision: D5117394

fbshipit-source-id: 00f65a59247a75d4b42240fe25935aa9bd8948b1
This commit is contained in:
Aaron Chiu authored and Facebook Github Bot committed 2017-05-31 02:25:31 -07:00
1 parent 23a34d4c65
commit 8125ce520d
12 files changed
+31 -42

No files matched your search

@@ -487,7 +487,7 @@ public class NativeViewHierarchyManager {
}
/**
* See {@link UIManagerModule#addMeasuredRootView}.
* See {@link UIManagerModule#addRootView}.
*/
public synchronized void addRootView(
int tag,
@@ -504,7 +504,7 @@ public class NativeViewHierarchyManager {
throw new IllegalViewOperationException(
"Trying to add a root view with an explicit id already set. React Native uses " +
"the id field to track react tags and will overwrite this field. If that is fine, " +
"explicitly overwrite the id field to View.NO_ID before calling addMeasuredRootView.");
"explicitly overwrite the id field to View.NO_ID before calling addRootView.");
}
mTagsToViews.put(tag, view);