Created
August 4, 2018 22:19
-
-
Save minmaxdata/3da9bd7aedcebf98f64d6e62cc449595 to your computer and use it in GitHub Desktop.
ReactAlertExample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onPressHandle() { | |
Alert.alert( | |
'Alert Title', | |
'My Alert Msg', | |
[ | |
{ | |
text: 'Ask me later', | |
onPress: () => console.log('Ask me later pressed') | |
}, | |
{ | |
text: 'Cancel', | |
onPress: () => console.log('Cancel Pressed'), | |
style: 'cancel' | |
}, | |
{ text: 'OK', onPress: () => console.log('OK Pressed') } | |
], | |
{ cancelable: false } | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment