@ -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);
}