diff --git a/squarenotsquare/redux/reducers/NavReducer.js b/squarenotsquare/redux/reducers/NavReducer.js new file mode 100644 index 0000000..3be4a9a --- /dev/null +++ b/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; +} \ No newline at end of file