mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-13 09:21:46 +08:00
move more bugreporting logic to bugreporting module
Reviewed By: astreet Differential Revision: D3168205 fb-gh-sync-id: 3cf5691acb258f9741c61005bbec0a8507bc8162 fbshipit-source-id: 3cf5691acb258f9741c61005bbec0a8507bc8162
This commit is contained in:
committed by
Facebook Github Bot 3
parent
89340f1620
commit
4ddb7c59d0
@@ -290,6 +290,11 @@ public class CatalystInstanceImpl implements CatalystInstance {
|
||||
return Assertions.assertNotNull(mJSModuleRegistry).getJavaScriptModule(executorToken, jsInterface);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends NativeModule> boolean hasNativeModule(Class<T> nativeModuleInterface) {
|
||||
return mJavaRegistry.hasModule(nativeModuleInterface);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends NativeModule> T getNativeModule(Class<T> nativeModuleInterface) {
|
||||
return mJavaRegistry.getModule(nativeModuleInterface);
|
||||
|
||||
Reference in New Issue
Block a user