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

Promise doesn't work with alert/Alert.alert #14698

Closed
devkudasov opened this issue Jun 23, 2017 · 0 comments
Closed

Promise doesn't work with alert/Alert.alert #14698

devkudasov opened this issue Jun 23, 2017 · 0 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@devkudasov
Copy link

[somePromise].then(resolve => { alert('Good'); }).catch(reject => { alert('Bad'); }).finally(done => { this.setState({ isLoading: false }); });

setState in finally doesn't work with alert message. Without alert all works correctly.

react-native 0.44.3
react 16.0.0-alpha.6

@hramos hramos closed this as completed Jun 23, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Jun 23, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants