Skip to content

ReactContext: currentActivity is null when onActivityResult is called #8694

Description

@fab1an

I use addActivityEventListener to listen for the result of an Intent.

  1. when I start the Intent RN calls onHostPause and releases the reference mCurrentActivity in ReactContext.java.
  2. my onActivityResult fires, but there is no currentActivity set yet, because onHostResume is called afterwards.

0.29 / Android / Mac

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions