Browse Source

navigate home after a timeout

pull/8/head
Tim Glasgow 2 years ago
parent
commit
e0ed4f7c30
  1. 3
      squarenotsquare/src/redux/actions/SystemActions.js

3
squarenotsquare/src/redux/actions/SystemActions.js

@ -1,11 +1,12 @@
import { initDB } from "../../realm/DbInit";
import DbAPI from "../../realm/DbAPI";
import { APP_INIT } from "../types/SystemTypes";
import { squareNav } from "../../navigation/SquareNav";
export function appInit() {
return async (dispatch) => {
await DbAPI.initDB();
dispatch(onInit());
setTimeout(() => squareNav('Home'), 1000);
}
}

Loading…
Cancel
Save