Expose executor name in ReactInstanceManager

Reviewed By: achen1

Differential Revision: D9231741

fbshipit-source-id: 34e616844c35b8cf8c7fb9760669a8905c3b86c5
This commit is contained in:
Marc Horowitz 2018-08-15 15:29:09 -07:00 committed by Facebook Github Bot
parent 3072d599c9
commit f71c6b6feb
2 changed files with 9 additions and 0 deletions

View File

@ -837,6 +837,10 @@ public class ReactInstanceManager {
return mLifecycleState;
}
public String getJsExecutorName() {
return mJavaScriptExecutorFactory.toString();
}
@ThreadConfined(UI)
private void onReloadWithJSDebugger(JavaJSExecutor.Factory jsExecutorFactory) {
Log.d(ReactConstants.TAG, "ReactInstanceManager.onReloadWithJSDebugger()");

View File

@ -24,4 +24,9 @@ public class JSCJavaScriptExecutorFactory implements JavaScriptExecutorFactory {
jscConfig.putString("DeviceIdentity", mDeviceName);
return new JSCJavaScriptExecutor(jscConfig);
}
@Override
public String toString() {
return "JSCExecutor";
}
}