Expose executor name in ReactInstanceManager
Reviewed By: achen1 Differential Revision: D9231741 fbshipit-source-id: 34e616844c35b8cf8c7fb9760669a8905c3b86c5
This commit is contained in:
parent
3072d599c9
commit
f71c6b6feb
|
@ -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()");
|
||||
|
|
|
@ -24,4 +24,9 @@ public class JSCJavaScriptExecutorFactory implements JavaScriptExecutorFactory {
|
|||
jscConfig.putString("DeviceIdentity", mDeviceName);
|
||||
return new JSCJavaScriptExecutor(jscConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "JSCExecutor";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue