mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 22:38:59 +08:00
Convert most packages to use LazyReactPackage
Reviewed By: astreet Differential Revision: D3334261 fbshipit-source-id: 8533e3dd9395ffb2fd8c9b71a0d352fe475d1cb9
This commit is contained in:
committed by
Facebook Github Bot 7
parent
96e41218ed
commit
541eaef4be
@@ -40,7 +40,7 @@ public class ModuleSpec {
|
||||
try {
|
||||
return getConstructor(type, EMPTY_SIGNATURE).newInstance();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
throw new RuntimeException("ModuleSpec with class: " + type.getName(), e);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58,7 +58,7 @@ public class ModuleSpec {
|
||||
try {
|
||||
return getConstructor(type, CONTEXT_SIGNATURE).newInstance(context);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
throw new RuntimeException("ModuleSpec with class: " + type.getName(), e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user