screens/Login.js
/**
   * Wrapper function to allow user to login into the application
   * @param {string} msg 
   */
Wrapper function to allow user to login into the application
@param {string} msg
Wrapper function to allow user to login into the application @param { string } msg
function handleLogin(msg) {
    setOpacity(new Animated.Value(1));
    if (msg.loginError) {
      setLoginError(true);
      setLoginErrorCode(msg.loginErrorCode);
    } else {
      setLoginError(false);
      login(msg.uid, msg.profile);
      if (msg.profileError) navigate("Setup");
      else navigate("App");
    }
  }
function handleLogin ( msg ) { setOpacity ( new Animated . Value ( 1 ) ) ; if ( msg . loginError ) { setLoginError ( true ) ; setLoginErrorCode ( msg . loginErrorCode ) ; } else { setLoginError ( false ) ; login ( msg . uid , msg . profile ) ; if ( msg . profileError ) navigate ( "Setup" ) ; else navigate ( "App" ) ; } }
Wrapper function to allow user to login into the application
 @param {string} msg
Wrapper function to allow user to login into the application @param { string } msg