NetMirror.apk
Download file
package com.facebook.react.bridge;
import a1.C0210a;
import g1.C0542a;
import java.util.Map;
/* JADX INFO: loaded from: classes.dex */
public abstract class BaseJavaModule implements NativeModule {
public static final String METHOD_TYPE_ASYNC = "async";
public static final String METHOD_TYPE_PROMISE = "promise";
public static final String METHOD_TYPE_SYNC = "sync";
protected CxxCallbackImpl mEventEmitterCallback;
private final ReactApplicationContext mReactApplicationContext;
public BaseJavaModule() {
this(null);
}
@Override // com.facebook.react.bridge.NativeModule
public boolean canOverrideExistingModule() {
return false;
}
public Map<String, Object> getConstants() {
return null;
}
protected final ReactApplicationContext getReactApplicationContext() {
return (ReactApplicationContext) C0210a.d(this.mReactApplicationContext, "Tried to get ReactApplicationContext even though NativeModule wasn't instantiated with one");
}
protected final ReactApplicationContext getReactApplicationContextIfActiveOrWarn() {
if (this.mReactApplicationContext.hasActiveReactInstance()) {
return this.mReactApplicationContext;
}
String str = "React Native Instance has already disappeared: requested by " + getName();
if (C0542a.f9423b) {
Y.a.I("ReactNative", str);
return null;
}
ReactSoftExceptionLogger.logSoftException("ReactNative", new RuntimeException(str));
return null;
}
@Override // com.facebook.react.bridge.NativeModule, com.facebook.react.turbomodule.core.interfaces.TurboModule
public void initialize() {
}
@Override // com.facebook.react.bridge.NativeModule, com.facebook.react.turbomodule.core.interfaces.TurboModule
public void invalidate() {
}
protected void setEventEmitterCallback(CxxCallbackImpl cxxCallbackImpl) {
this.mEventEmitterCallback = cxxCallbackImpl;
}
public BaseJavaModule(ReactApplicationContext reactApplicationContext) {
this.mReactApplicationContext = reactApplicationContext;
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file