Skip to content

Commit

Permalink
Call super.onActivityResult in ReactActivity
Browse files Browse the repository at this point in the history
Summary:
This change allows native activities and fragments to also handle onActivityResult callbacks, in addition to sending the result to React Native.

Changelog:
[Android][Changed] - Call super.onActivityResult in ReactActivity's onActivityResult()

Reviewed By: JoshuaGross

Differential Revision: D30232449

fbshipit-source-id: cb080d6f2eff57dcf839660ee715cb4068ffcdd5
  • Loading branch information
fatalsun authored and facebook-github-bot committed Aug 19, 2021
1 parent 4804e68 commit 29249e1
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -65,6 +65,7 @@ protected void onDestroy() {

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
mDelegate.onActivityResult(requestCode, resultCode, data);
}

Expand Down

0 comments on commit 29249e1

Please sign in to comment.