You have to import Alert in your JS page and apply this code.
import { StyleSheet, View, Text, SafeAreaView, TextInput, ScrollView, Alert } from 'react-native'; Alert.alert( "Are you sure?", "You want to delete this schedule", [ { text: "Cancel", onPress: () => console.log("Cancel"), style: "cancel" }, { text: "Yes", onPress: () => console.log("Ok"); this.DeleteFunction() // You call call your delete function here. } ], { cancelable: false } );
Question and answer is powered by AnsPress.io