1// Works on both Android and iOS
2Alert.alert(
3 'Alert Title',
4 'My Alert Msg',
5 [
6 {text: 'Ask me later', onPress: () => console.log('Ask me later pressed')},
7 {
8 text: 'Cancel',
9 onPress: () => console.log('Cancel Pressed'),
10 style: 'cancel',
11 },
12 {text: 'OK', onPress: () => console.log('OK Pressed')},
13 ],
14 {cancelable: false},
15);
16