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

BackAndroid.exitApp() prevent to hide Toast message #5599

Closed
exromany opened this issue Jan 28, 2016 · 11 comments
Closed

BackAndroid.exitApp() prevent to hide Toast message #5599

exromany opened this issue Jan 28, 2016 · 11 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@exromany
Copy link

0.18.0

When I show Toast message and invoke BackAndroid.exitApp() while it still shown, Toast message will not be closed.

ToastAndroid.show('This message will not be closed', ToastAndroid.SHORT);
setTimeout(() => {
  BackAndroid.exitApp();
}, 1000);
@facebook-github-bot
Copy link
Contributor

Hey exromany, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!

@hufeng
Copy link

hufeng commented Jan 31, 2016

yes, i met the same problem.

1 similar comment
@juncocoa
Copy link

juncocoa commented Feb 1, 2016

yes, i met the same problem.

@AndrewJack
Copy link
Contributor

#5906 Looks like it will help fix this issue.

@suxiaoyv
Copy link

suxiaoyv commented Mar 1, 2016

yes, i met the same problem.

@naivehhr
Copy link

naivehhr commented Mar 8, 2016

+1

@nihgwu
Copy link
Contributor

nihgwu commented Mar 9, 2016

the same

@tdzl2003
Copy link
Contributor

It looks like react-native changes the thread to run native modules. This causes toast message cannot disappear after exitApp(). I'll give a PR today.

tdzl2003 pushed a commit to tdzl2003/react-native that referenced this issue Mar 14, 2016
@janicduplessis
Copy link
Contributor

@tdzl2003 Thanks for submitting the PR! I'll close this issue since it will be fixed once #6443 lands.

@janicduplessis
Copy link
Contributor

@facebook-github-bot close

@facebook-github-bot
Copy link
Contributor

@janicduplessis tells me to close this issue. If you think it should still be opened let us know why.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Mar 20, 2016
ghost pushed a commit that referenced this issue Mar 22, 2016
Summary:Run `Toast.makeText` other than UI Thread will cause bug #5599 : toast doesn't disappear after app exited.

use `UiThreadUtil.runOnUiThread` to fix this.
Closes #6443

Differential Revision: D3047261

fb-gh-sync-id: 0096879f2a4b4d76bda996a32089f068ae68e3f3
shipit-source-id: 0096879f2a4b4d76bda996a32089f068ae68e3f3
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests