Alert.alert closing expo

JavaScript
const submitButton =  () => {
    Alert.alert('error','', [{ text: 'Ok' }]);
 }
Source

Also in JavaScript: