-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
37 lines (27 loc) · 937 Bytes
/
App.tsx
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
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import 'react-native-gesture-handler';
// import { useColorScheme } from 'react-native';
// import { Colors } from 'react-native/Libraries/NewAppScreen';
// import { getMainDatabase } from './src/libs/notion';
import Routes from './src/routes';
import { NotionProvider } from './src/contexts/NotionContext';
import { Toast } from './src/components/Toast/Toast';
function App() {
console.log('app is starting');
// const isDarkMode = useColorScheme() === 'dark';
// const backgroundStyle = {
// backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
// };
// getMainDatabase();
return (
<NotionProvider>
{/* Only use ToastProvider if it is using Context implementation.
Zustand implementation doesn't need a provider */}
{/* <ToastProvider> */}
<Routes />
<Toast />
{/* </ToastProvider> */}
</NotionProvider>
);
}
export default App;