Skip to content

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

Closed
@devkudasov

Description

@devkudasov

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions