How to use the react-native-router-flux.Actions.app 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 mongrov / roverz / src / auth / Login / LoginView.js View on Github external
this._service.onLogin((/* err, */ /* res */) => {
      // console.log('onLogink', err, res, this._service.service.loggedInUser);
      if (this._mounted && this._service.service.loggedInUser) {
        if (this._service.service.loggedInUser.username) {
          Actions.app({ type: 'reset' });
        }
      }
    });
    this._mounted = true;
github mongrov / roverz / src / auth / Login / Register.js View on Github external
}, () => {
          // console.log('RegCB 01', lerr, lres);
          if (this._net.service.loggedInUser && this._net.service.loggedInUser.username) {
            Actions.app({ type: 'reset' });
          } else {
            this.setState({ setUsername: true, alert: { success: '' } });
            this._net.service.getUsernameSuggestion((Uerr, Ures) => {
              if (Uerr) {
                this.setState({ alert: { error: 'Error fetching username!' } });
              } else if (Ures) {
                this.setState({ inputUsername: Ures });
              }
            });
          }
        });
      });
github mcnamee / react-native-starter-kit / src / containers / Launch / LaunchView.js View on Github external
        .then(() => Actions.app({ type: 'reset' }))
        // Not Logged in, show Login screen
github mongrov / roverz / src / auth / SelectServer.js View on Github external
this._service.onLogin(() => {
      if (this._mounted && this._service.service.loggedInUser) {
//        this._service.switchToLoggedInUser();
        Actions.app({ type: 'reset' });
      }
    });
    // Get server name
github N3TC4T / Nearby-Live / src / containers / launch / LaunchView.js View on Github external
.then((token) => {
                Actions.app({type: 'reset'});
                // connect to websocket
                Actions.app({type: 'CONNECT', token});
            })
            // Not Logged in, show Login screen
github N3TC4T / Nearby-Live / src / containers / auth / AuthenticateView.js View on Github external
setTimeout(() => {
                        Actions.app({type: 'reset'});
                    }, 2300);
                });
github mcnamee / react-native-starter-kit / src / containers / auth / Forms / FormView.js View on Github external
.then(() => {
                    Actions.app({ type: 'reset' });
                    Actions.pop();
                  }).catch(err => this.setState({ resultMsg: { error: err.message } }));
              }