I have a react-native application that uses react-native-fbsdk for log in with facebook. I want to know how does the LoginButton provided by that library manage its state? Currently I'm trying it with android version.
If I login with the app, it logins correctly, and then button text changes from 'Continue with facebook' to 'Log out'. Now if I reload the application, and open it again, then the login button still reads 'Log out'. As if it has saved the previous state somewhere? I want to know where it has saved the state? How could I access it? Does it ask the login status under hood from facebook? Or how does it work?
This question is related to mine: How to check if the user is already logged in?