Created
September 2, 2021 15:11
-
-
Save warodri-sendbird/bff4a3458cb6be6de00fb5305685e44c to your computer and use it in GitHub Desktop.
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
useEffect(() => { | |
AsyncStorage.getItem(savedUserKey) | |
.then(user => { | |
if (user) { | |
setCurrentUser(JSON.parse(user)); | |
} | |
setInitialized(true); | |
return handleNotificationAction(navigation, sendbird, currentUser, 'lobby'); | |
}) | |
.catch(err => console.error(err)); | |
}, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment