mirror of
https://github.com/status-im/react-native.git
synced 2025-02-27 00:20:31 +00:00
Better error message for invalid native module
Reviewed By: mdvacca Differential Revision: D7641828 fbshipit-source-id: b1500029da49b60b6a69bc61ecc7f72629f65dcb
This commit is contained in:
parent
d8fcdb9bd7
commit
eff98b6c25
@ -141,7 +141,8 @@ public class NativeModuleRegistry {
|
||||
}
|
||||
|
||||
public <T extends NativeModule> T getModule(Class<T> moduleInterface) {
|
||||
return (T) Assertions.assertNotNull(mModules.get(moduleInterface)).getModule();
|
||||
return (T) Assertions.assertNotNull(
|
||||
mModules.get(moduleInterface), moduleInterface.getSimpleName()).getModule();
|
||||
}
|
||||
|
||||
public List<NativeModule> getAllModules() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user