1import {Alert } from "react-native";
2
3Alert.alert(
4 "Alert Title",
5 "My Alert Msg",
6 [
7 {
8 text: "Ask me later",
9 onPress: () => console.log("Ask me later pressed")
10 },
11 {
12 text: "Cancel",
13 onPress: () => console.log("Cancel Pressed"),
14 style: "cancel"
15 },
16 { text: "OK", onPress: () => console.log("OK Pressed") }
17 ]
18 );
19
20
21
22