How to use the react-native-router-flux.ActionConst.REPLACE 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 shellfly / AwesomeProject / app / screens / AuthLogin.js View on Github external
onNavigationStateChange(navState) {
    console.log("nav state change: ---> ", navState);
    if (navState.url === HOME_URL || navState.url === `${HOME_URL}main/`) {
      updateCSRF();
      this.setState({
        loggedIn: true,
      });
      Actions.main({ type: ActionConst.REPLACE });
    }
  }
github aksonov / react-native-router-flux / examples / react-native / App.js View on Github external
navigation.state.key} />
            

            
              
              
              
              
            

            
              
              
              
            

             {
                console.log('Drawer closed');
              }}
              onEnter={() => {
                console.log('Drawer opened');
              }}
              contentComponent={DrawerContent}
              drawerImage={MenuIcon}
              drawerWidth={300}
            >
              {/*
github redbaron76 / MeteorNative / RNApp / app / actions / authActions.js View on Github external
Meteor.loginWithPassword(email, password, (error) => {
                if (error) {
                    dispatch(loading());
                    dispatch(errorLogin(error.reason));
                } else {
                    dispatch(loading());
                    dispatch(userData(Meteor.user()));
                    Actions.home({type: ActionConst.REPLACE});
                }
            });
        } else {
github 1ibrary / 1ibrary-front-end / js / AppRouter.js View on Github external
key={scenes.SCENE_FEEDBACK}
              component={FeedBack}
              title="ๅ้ฆˆ้กต้ข"
              hideNavBar
            />
            
            
            
          
        
      
    )
  }
}
github Bruno-Furtado / fastbuy-app / src / Router.js View on Github external
render() {
    const { sceneStyle, navigationBarStyle, navigationBarTitleStyle } = styles;
    return (
      

        
          
            
          

          
            
          

          
            
               this.props.logout()}
                rightButtonImage={imgAppAdd}
                onRight={() => this.props.addProduct()}
              />
github anhtuank7c / Clock / src / Router.js View on Github external
titleStyle={navigationTitleStyle}
                        sceneStyle={sceneStyle}
                        key="timer"
                        title="Timer"
                        component={Timer}
                        type={ActionConst.RESET}
                    />
                    
                
            
        
    );
};
github AOSSIE-Org / CarbonFootprint-Mobile / app / actions / GoogleLoginAction.js View on Github external
.then(user => {
                    dispatch(actions.receiveAuth(user));
                    dispatch(loaderToggle());
                    Actions.main({
                        type: ActionConst.REPLACE
                    });
                })
                .catch(error => {
github cosmicjs / react-native-twitter-clone / app / config / routes.js View on Github external
import React from 'react';
import { Scene, Router, Actions, ActionConst } from 'react-native-router-flux';
import Welcome from '../layouts/welcome';
import Login from '../layouts/login';
import Signup from '../layouts/signup';
import NewPost from '../layouts/newPost';
import Feed from '../layouts/feed';

const scenes = Actions.create(
  
    
    
    
    
    
  
);

export default () => (
  
);
github keith527 / InstantMessage / App / containers / App.js View on Github external
shadowRadius: null,
    };
    if (computedProps.isActive) {
        style.marginTop = computedProps.hideNavBar ?
            0 : Navigator.NavigationBar.Styles.General.TotalNavHeight;
        style.marginBottom = computedProps.hideTabBar ? 0 : 50;
    }
    return style;
};

const scenes = Actions.create(
    
        
        
        
        
github guangqiang-liu / OneM / src / containers / App.js View on Github external
          

           state.find.chat,
              Action.dispatch('openChat')
            )(Network)}/>

          

        

         state.common.loading
        )(Loading)}/>