From 726957fd12ac90e2f9f5de3a27ff86f996cd3178 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sun, 24 Jul 2022 15:10:17 -0500 Subject: [PATCH] nav reducer --- squarenotsquare/redux/reducers/NavReducer.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 squarenotsquare/redux/reducers/NavReducer.js 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