Browse Source

nav reducer

pull/1/head
Tim Glasgow 2 years ago
parent
commit
726957fd12
  1. 15
      squarenotsquare/redux/reducers/NavReducer.js

15
squarenotsquare/redux/reducers/NavReducer.js

@ -0,0 +1,15 @@
import * as SquareNav from '../../navigation/SquareNav';
import { APP_INIT } from '../types/SystemTypes';
export function navReducer(state = {}, action){
switch (action.type) {
case APP_INIT:
SquareNav.navigate('Home');
break;
default:
break;
}
return state;
}
Loading…
Cancel
Save