-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
31 lines (25 loc) · 921 Bytes
/
App.js
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
import React from 'react';
import { Provider as PaperProvider } from 'react-native-paper';
import { useTheme } from './app/hooks/useTheme';
import { Router } from './Router';
import { ErrorHandlerContainer } from './app/components/ErrorModal/ErrorHandlerContainer';
import { FeedbackMessageContainer } from './app/components/FeedbackMessage/FeedbackMessageContainer';
import { DatabaseLoader } from './app/components/DatabaseLoader/DatabaseLoader';
import moment from 'moment';
import 'moment/locale/pt-br'
import 'react-native-gesture-handler';
export default function App() {
const theme = useTheme();
moment.locale('pt-br');
return (
<PaperProvider theme={theme}>
<ErrorHandlerContainer>
<FeedbackMessageContainer>
<DatabaseLoader>
<Router />
</DatabaseLoader>
</FeedbackMessageContainer>
</ErrorHandlerContainer>
</PaperProvider>
);
}