Browse Source

Creation and initialization of database in App.js

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

11
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 (
// <SharingFloodZonesScreen />
<NavigationContainer theme={navigationTheme}>
<AppNavigator />
</NavigationContainer>
);
}
}
Loading…
Cancel
Save