mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Change the order of handling exception and clearing react instance manager
Summary: Changelog: [Internal] Added better explanation to help debugging ViewManager crashes Reviewed By: makovkastar Differential Revision: D24539229 fbshipit-source-id: 36a010324cbf29dfe63784682715b963394a87fb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
07d090dbc6
commit
c2b75901cf
@@ -56,7 +56,11 @@ public final class ViewManagerRegistry {
|
||||
if (mViewManagerResolver != null) {
|
||||
viewManager = getViewManagerFromResolver(className);
|
||||
if (viewManager != null) return viewManager;
|
||||
throw new IllegalViewOperationException("ViewManagerResolver returned null for " + className);
|
||||
throw new IllegalViewOperationException(
|
||||
"ViewManagerResolver returned null for "
|
||||
+ className
|
||||
+ ", existing names are: "
|
||||
+ mViewManagerResolver.getViewManagerNames());
|
||||
}
|
||||
throw new IllegalViewOperationException("No ViewManager found for class " + className);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user