public class JSDevSupport extends ReactContextBaseJavaModule
Modifier and Type | Class and Description |
---|---|
static interface |
JSDevSupport.DevSupportCallback |
static interface |
JSDevSupport.JSDevSupportModule |
NativeModule.NativeMethod
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_CODE_EXCEPTION |
static int |
ERROR_CODE_VIEW_NOT_FOUND |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Constructor and Description |
---|
JSDevSupport(ReactApplicationContext reactContext) |
Modifier and Type | Method and Description |
---|---|
void |
computeDeepestJSHierarchy(android.view.View root,
JSDevSupport.DevSupportCallback callback)
Notifies the callback with either the JS hierarchy of the deepest leaf from the given root view
or with an error.
|
java.util.Map<java.lang.String,java.lang.Object> |
getConstants() |
void |
getJSHierarchy(int reactTag,
JSDevSupport.DevSupportCallback callback) |
java.lang.String |
getName() |
void |
onFailure(int errorCode,
java.lang.String error) |
void |
onSuccess(java.lang.String data) |
getCurrentActivity, getReactApplicationContext
canOverrideExistingModule, hasConstants, initialize, onCatalystInstanceDestroy
public static final int ERROR_CODE_EXCEPTION
public static final int ERROR_CODE_VIEW_NOT_FOUND
public JSDevSupport(ReactApplicationContext reactContext)
public void computeDeepestJSHierarchy(android.view.View root, JSDevSupport.DevSupportCallback callback)
public void getJSHierarchy(int reactTag, JSDevSupport.DevSupportCallback callback)
public void onSuccess(java.lang.String data)
public void onFailure(int errorCode, java.lang.String error)
public java.util.Map<java.lang.String,java.lang.Object> getConstants()
getConstants
in class BaseJavaModule
public java.lang.String getName()
require()
this module
from javascript.