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:
Christoph Nakazawa
2019-01-01 19:42:49 -08:00
committed by Facebook Github Bot
parent dd209bb789
commit 117dcd9c58
@@ -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