From af93ee8d50317a30d7275e7dd6ba3b6494468300 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Fri, 11 Dec 2020 12:22:53 -0300 Subject: [PATCH] Creation and initialization of database in App.js --- src/App.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 14c9bd8..f49e10d 100644 --- a/src/App.js +++ b/src/App.js @@ -3,11 +3,20 @@ import { NavigationContainer } from "@react-navigation/native"; import navigationTheme from "./app/navigation/navigationTheme"; 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() { + global.userDataBase = openDatabase(); + initDatabase(global.userDataBase); + return ( + // ); -} \ No newline at end of file +}