Listen to loggedIn & loggedOut events from native, call relevant functions.