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:
Felix Oghina
2016-04-14 03:17:31 -07:00
committed by Facebook Github Bot 3
parent 89340f1620
commit 4ddb7c59d0
4 changed files with 20 additions and 1 deletions

View File

@@ -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);