@Override public CatalystInstance build() { JavaScriptExecutor executor = null; try { executor = new JSCJavaScriptExecutor.Factory(new WritableNativeMap()).create(); } catch (Exception e) { throw new RuntimeException(e); } return new CatalystInstanceImpl.Builder() .setReactQueueConfigurationSpec(ReactQueueConfigurationSpec.createDefault()) .setJSExecutor(executor) .setRegistry( new NativeModuleRegistry( mModuleSpecList, Collections.<Class, ReactModuleInfo>emptyMap())) .setJSModuleRegistry(mJSModuleRegistryBuilder.build()) .setJSBundleLoader( JSBundleLoader.createAssetLoader(mContext, "assets://AndroidTestBundle.js")) .setNativeModuleCallExceptionHandler( new NativeModuleCallExceptionHandler() { @Override public void handleException(Exception e) { throw new RuntimeException(e); } }) .build(); }