SplashScreenA react component that shows up before the auth flow.
next. You should have a button that tells people to sign in with phone, and the
onPressof this button should be the
LoadingScreenA react component that will be shown while the auth state is initially loading.
onCodeVerified, since there is a network request made between the successful code and signing in with firebase.
null, so check for that.
onAuthStateChangedfollows the same API as the one from the Firebase Auth API.
+1which makes the initial flag 🇺🇸