mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix error message in NativeViewHierarchy
Summary: It was pointed out to me in https://github.com/facebook/react-native/pull/22508 by raphael-liu that the error message refers to the wrong tag. I didn't merge the PR because I don't have good insight into the effects it could cause, but we should at least fix the error message. Reviewed By: TheSavior Differential Revision: D13564266 fbshipit-source-id: fa76f0888364df329d052dbcc2050f906d39dcef
This commit is contained in:
committed by
Facebook Github Bot
parent
dd209bb789
commit
117dcd9c58
+1
-1
@@ -198,7 +198,7 @@ public class NativeViewHierarchyManager {
|
||||
parentViewGroupManager = (ViewGroupManager) parentViewManager;
|
||||
} else {
|
||||
throw new IllegalViewOperationException(
|
||||
"Trying to use view with tag " + tag +
|
||||
"Trying to use view with tag " + parentTag +
|
||||
" as a parent, but its Manager doesn't extends ViewGroupManager");
|
||||
}
|
||||
if (parentViewGroupManager != null
|
||||
|
||||
Reference in New Issue
Block a user