Created
June 6, 2021 00:27
-
-
Save yoandresaav/8e4a64913dc00aa5890b497d3962889d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import { | |
ToastAndroid, | |
Platform, | |
AlertIOS, | |
} from 'react-native'; | |
function notifyMessage(msg: string) { | |
if (Platform.OS === 'android') { | |
ToastAndroid.show(msg, ToastAndroid.SHORT) | |
} else { | |
AlertIOS.alert(msg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment