How to use the react-native-router-flux.Actions.home 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 DupK / dashboard-epitech / App / src / features / login / Login.js View on Github external
this.setState({
                loggingIn: true,
                loginMessage: 'Retrieving data from cache...'
            });

            //set session first as most of others stores needs fields from it
            await session.retrieveSessionFromCache();

            await Promise.all([
                calendar.retrieveCalendarFromCache(),
                projects.retrieveProjectsFromCache(),
                marks.retrieveMarksFromCache(),
                //ranking.selfRankPosition({ fromCache: true }),
            ]);

            Actions.home();
        } catch (e) {
            console.error(e);
        }
    }
github aksonov / react-native-router-flux / examples / react-native / components / Register.js View on Github external
    <button> Actions.home({ homeProp: 'Test of prop refresh!' })}&gt;Replace screen</button>
    <button>Back</button>
github EdgeApp / edge-react-gui / src / modules_old / ReviewDetails / ReviewDetails.ui.js View on Github external
handleFinish = () => {
    const { username, password } = this.props.details
    this.props.dispatch(loginWithPassword(username, password))
    Actions.home()
  }
github thanhtungdp / react-native-login-animated / src / pages / Login.js View on Github external
handleToHome() {
        Actions.home({type: ActionConst.RESET, disableInteractionCheck: true})
    }
github blindsidenetworks / bigbluetutor-client / client / React-Native / app / components / register.js View on Github external
this.state.dataRecord.whenReady(() => {
            if (!this.state.profileRecord.get("onboardingComplete")) {
              Actions.reset('onboard', {ds: this.props.ds, username: this.state.username, profileRecord: this.state.profileRecord, dataRecord: this.state.dataRecord, configurePush: this.props.configurePush});
            } else {
              var configurePush = this.props.configurePush.bind(this)
              configurePush()
              Actions.reset('drawer', {ds: this.props.ds, username: this.state.username, profileRecord: this.state.profileRecord, dataRecord: this.state.dataRecord, configurePush: this.props.configurePush});
              Actions.home({ds: this.props.ds, username: this.state.username, profileRecord: this.state.profileRecord, dataRecord: this.state.dataRecord, configurePush: this.props.configurePush});
            }
          })
        })
github EdgeApp / edge-react-gui / src / modules_old / Login / Login.middleware.js View on Github external
context.loginWithPassword(username, password, null, null, (error, account) => {
          dispatch(closeLoading())
          if (error) {
            dispatch(openErrorModal(error.message))
          }
          if (!error) {
            global.localStorage.setItem('lastUser', username)
            dispatch(userLogin(account))
            Actions.home()
          }
        })
      })