How to use the react-native-router-flux.ActionConst.RESET 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 AOSSIE-Org / CarbonFootprint-Mobile / app / actions / SimpleAction.js View on Github external
async function firebaseSignin(email, pass) {
    try {
        await firebase.auth().signInWithEmailAndPassword(email, pass);
        alert("Logged In!");
        // Navigate to the Home page
        Actions.main({type: ActionConst.RESET});
        Actions.calculate();
        return true;
    } catch (error) {
        alert(error.toString());
        return false;
    }
}
github infinitered / ignite / packages / ignite-ir-boilerplate / boilerplate / App / Sagas / OpenScreenSagas.js View on Github external
export function * openScreen (action) {
  const {screen, options = {}} = action
  // Always reset the nav stack when opening a screen by default
  // You can override the RESET type in the options passed to the OPEN_SCREEN dispatch
  const mergedOptions = {type: ActionConst.RESET, ...options}
  yield call(NavigationActions[screen], mergedOptions)
}
github surmon-china / surmon.me.native / src.starter-kit.bak / navigation / index.js View on Github external
/* Routes ==================================================================== */
export default Actions.create(
  
    

    {/* Auth */}
    {AuthScenes}

    {/* Main App */}
    
      {/* Drawer Side Menu */}
      
        {/* Tabbar */}
        {TabsScenes}
      

      {/* General */}
      
    
  ,
github AOSSIE-Org / CarbonFootprint-Mobile / app / actions / AuthAction.js View on Github external
.then(() => {
                Actions.intro({ type: ActionConst.RESET });
                // Reset the store
                dispatch({
                    type: 'USER_LOGOUT'
                });
            })
            .catch(error => {
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 mongrov / roverz / example-old / src / navigation / index.js View on Github external
import TabsScenes from './tabs';

/* Routes ==================================================================== */
export default Actions.create(
  

    {/* Auth */}
    {AuthScenes}

    {/* Main App */}
    
      
      {/* Drawer Side Menu */}
      
        {/* Tabbar */}
        {TabsScenes}
      

      {/* Chat */}
github N3TC4T / Nearby-Live / src / navigation / auth.js View on Github external
// Consts and Libs
import {AppConfig} from '@constants/';

// Scenes
import Authenticate from '@containers/auth/AuthenticateContainer';
import AuthWebView from '@containers/auth/WebView';

/* Routes ==================================================================== */
const scenes = (
    
        
        
    
);

export default scenes;
github dwicao / react-native-redux-firebase-todo / src / components / ControlPanel / index.js View on Github external
actions.startLogout().then(() => {
      actions.changeUserData({ email: null });
      Actions.loginScreen({ type: ActionConst.RESET });
    }, error => {
      Alert.alert(JSON.stringify(error.message));
github dwicao / react-native-redux-firebase-todo / src / components / EditTodo / index.js View on Github external
const _onPress = () => {
		actions.editTodo(id, textValue);
		actions.startUpdateTodo(id, 'text', textValue);
		Actions.mainScreen({type: ActionConst.RESET});
	}
github anhtuank7c / Clock / src / Router.js View on Github external
iconSelected="ios-stopwatch" />
                
                    
                    
                
            
        
    );