Skip to content

Commit

Permalink
fix: compileDebugJavaWithJavac (#31)
Browse files Browse the repository at this point in the history
* fix: react-native-fbsdk-next:compileDebugJavaWithJavac

* fix: Make constructor equal to FBAppLinkModule

* fix: Importing ReactApplicationContext
  • Loading branch information
UriMiranda committed May 27, 2021
1 parent bf5771e commit 913e792
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.module.annotations.ReactModule;

import androidx.annotation.NonNull;
Expand All @@ -16,6 +17,10 @@
public class FBProfileModule extends ReactContextBaseJavaModule {
public static final String NAME = "FBProfile";

public FBProfileModule(ReactApplicationContext reactContext) {
super(reactContext);
}

@NonNull
@Override
public String getName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public List<NativeModule> createNativeModules(
new FBGraphRequestModule(reactContext),
new FBLoginManagerModule(reactContext, mActivityEventListener),
new FBMessageDialogModule(reactContext, mActivityEventListener),
new FBProfileModule(),
new FBProfileModule(reactContext),
new FBSettingsModule(),
new FBShareDialogModule(reactContext, mActivityEventListener)
);
Expand Down

0 comments on commit 913e792

Please sign in to comment.