-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
27 lines (24 loc) · 703 Bytes
/
Copy pathApp.js
File metadata and controls
27 lines (24 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import 'react-native-gesture-handler';
import React, { useEffect } from "react";
import { Database } from './database/Database';
import { NavigationContainer } from "@react-navigation/native";
import SlidingSidebar from "./routes/SlidingSidebar";
import { Provider } from 'react-redux';
import { configureStore } from '@reduxjs/toolkit';
import rootReducer from './features';
const store = configureStore({
reducer: rootReducer,
});
export default function App() {
//Initialize database when app starts
useEffect(() => {
Database.init();
});
return (
<Provider store={store}>
<NavigationContainer>
<SlidingSidebar/>
</NavigationContainer>
</Provider>
);
}