Add stack&bottom-tab navigation to App&move out closeDB&notifications

This commit is contained in:
MariaZ
2022-09-28 19:58:33 +02:00
parent d17e7ed6a2
commit b6024ae921
5 changed files with 77 additions and 105 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react'
import { getLicenseFlag, saveEncryptionFlag } from '../local-storage'
import { openDb } from '../db'
import { closeDb, openDb } from '../db'
import App from './app'
import AppLoadingView from './common/app-loading'
@@ -29,6 +29,8 @@ export default function AppWrapper() {
useEffect(() => {
checkIsLicenseAccepted()
checkIsDbEncrypted()
return () => closeDb()
}, [])
if (isLoading) {