You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having a view (Modal) on screen, and then display and Alert.alert(), things gets buggy. Alert will get dismissed, and the modal will stay on screen even after a reload, must restart the app in order to remove it.
Reproduction
componentDidMount() {
setTimeout(() => {
Alert.alert("alert"); // Alert will be dismissed right after displayed
this.setState({ loading: false })
}, 1000);
}
render() {
return (
<View>
<Modal visible={this.state.loading}>
<Text>Loading</Text>
</Modal>
</View>
)
}
Additional Information
React Native version: 0.37.0
The text was updated successfully, but these errors were encountered:
hedegren
changed the title
Alert error when using Modal
Alert bugg when using Modal
Nov 23, 2016
Description
When having a view (Modal) on screen, and then display and Alert.alert(), things gets buggy. Alert will get dismissed, and the modal will stay on screen even after a reload, must restart the app in order to remove it.
Reproduction
Additional Information
The text was updated successfully, but these errors were encountered: