How to use the react-native-router-flux.Actions.login function in react-native-router-flux

To help you get started, we’ve selected a few react-native-router-flux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github J-Priebe / react-native-facebook-firebase / src / components / Splash.js View on Github external
checkFirebaseAuth(accessTokenData).then((user) => {
          
          if (user){
            Actions.home({type: ActionConst.RESET})

          }else{ // user needs to login to get a Facebook auth token
            Actions.login({type: ActionConst.RESET})
          }
        })
      })
github shellfly / AwesomeProject / app / screens / Profile / Profile.js View on Github external
                  { text: "退出", onPress: () => { axios.get(LOUGOUT_URL).then(() => Actions.login()); } },
                  { text: "取消", onPress: () => console.log("Cancel Pressed"), style: "cancel" },
github easemob / webim-react-native / App / Redux / WebIMRedux.js View on Github external
return (dispatch, state) => {
      if (WebIM.conn.isOpened()) {
        WebIM.conn.close('logout')
      }

      NavigationActions.login();
    }
  },
github ishraqe / react-native-blog / src / component / screens / Auth / Auth.js View on Github external
loginScreen = () => {
        Actions.login();
    }
    signUpScreen = () => {
github aksonov / react-native-router-flux / Example / components / Launch.js View on Github external
        <button title="Go to Login"> Actions.login({ data: 'Custom data', title: 'Custom title' })} /&gt;
        </button><button title="Go to Register page"></button>
github mcnamee / react-native-starter-kit / src / native / components / User / ForgotPassword.js View on Github external
      .then(() => setTimeout(() => { Actions.pop(); Actions.login(); }, 1000))
      .catch(() => {});
github rexlow / Devent / src / containers / SplashScreen.js View on Github external
processAuth(props) {
    if(props.auth.user != null) {
      if(props.auth.user.uid) {
        Actions.main({ type: 'reset' });
      }else{
        Actions.login({ type: 'reset' });
      }
    }
  }