Created
January 12, 2021 12:38
-
-
Save Karthik-B-06/f7e88f75996d75d87b7b136b0c57f12c 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 messaging from '@react-native-firebase/messaging'; | |
| const getToken = async () => { | |
| fcmToken = await messaging().getToken(); | |
| console.log(fcmToken); | |
| }; | |
| useEffect(() => { | |
| getToken(); | |
| }, []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment