Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal callback invocation from native module. This callback type only permits a single invocation from native code. #8

Open
jeremy8883 opened this issue Jan 1, 2019 · 0 comments

Comments

@jeremy8883
Copy link

How to replicate:
Call startActivity twice in a row, very quickly.

Error:

Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
com.poberwong.launcher.IntentLauncherModule.onActivityResult (IntentLauncherModule.java:105)

The problem occurs because of this shared promise variable. If startActivity gets called a second time, before the onActivityResult callback, that promise value is replaced with the second one. Then this line gets called twice on that same second Promise object, and fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant