|
@ -3,11 +3,20 @@ 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> |
|
|
); |
|
|
); |
|
|
} |
|
|
|
|
|
|
|
|
} |