mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
don't block attaching ReactRootView on measuring
Reviewed By: achen1 Differential Revision: D5117394 fbshipit-source-id: 00f65a59247a75d4b42240fe25935aa9bd8948b1
This commit is contained in:
1 parent
23a34d4c65
commit
8125ce520d
12 files changed
+31
-42
No files matched your search
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user