Browse Source

Creation and initialization of database in App.js

master
GabrielTrettel 4 years ago
parent
commit
af93ee8d50
  1. 9
      src/App.js

9
src/App.js

@ -3,9 +3,18 @@ import { NavigationContainer } from "@react-navigation/native";
import navigationTheme from "./app/navigation/navigationTheme"; import navigationTheme from "./app/navigation/navigationTheme";
import AppNavigator from "./app/navigation/AppNavigator"; import AppNavigator from "./app/navigation/AppNavigator";
import "./app/config/globals.js";
import openDatabase from "./app/database/database-connection";
import SharingFloodZonesScreen from "./app/screens/SharingFloodZonesScreen";
import initDatabase from "./app/database/database-init";
export default function App() { export default function App() {
global.userDataBase = openDatabase();
initDatabase(global.userDataBase);
return ( return (
// <SharingFloodZonesScreen />
<NavigationContainer theme={navigationTheme}> <NavigationContainer theme={navigationTheme}>
<AppNavigator /> <AppNavigator />
</NavigationContainer> </NavigationContainer>

Loading…
Cancel
Save