Skip to content

Instantly share code, notes, and snippets.

@radinreth
Created December 29, 2018 06:53
Show Gist options
  • Save radinreth/779dd094f06445f1a75e10817cdd0c17 to your computer and use it in GitHub Desktop.
Save radinreth/779dd094f06445f1a75e10817cdd0c17 to your computer and use it in GitHub Desktop.
package com.rnsociallogin;
import android.content.Intent;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
MainApplication.getCallbackManager().onActivityResult(requestCode, resultCode, data);
}
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "rnSocialLogin";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment