-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
57 lines (52 loc) · 1.39 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* eslint-disable camelcase */
import {
Nunito_300Light,
Nunito_400Regular,
Nunito_500Medium,
Nunito_600SemiBold,
Nunito_700Bold,
useFonts,
} from '@expo-google-fonts/nunito';
import { LogBox } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { MD3LightTheme as DefaultTheme, PaperProvider } from 'react-native-paper';
import { AuthProvider } from '@context/AuthContext';
import { GlobalSheetBottom } from '@context/BottomSheetContext';
import CustomSafeArea from './src/components/Shared/CustomSafeArea/CustomSafeArea';
import Routes from './src/routes';
export default function App() {
LogBox.ignoreAllLogs();
const [fontsLoaded] = useFonts({
Nunito_300Light,
Nunito_400Regular,
Nunito_500Medium,
Nunito_600SemiBold,
Nunito_700Bold,
});
if (!fontsLoaded) {
return null;
}
const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primary: '#000',
underlineColor: 'transparent',
background: '#fff',
},
roundness: 2
};
return (
<CustomSafeArea>
<PaperProvider theme={theme}>
<GestureHandlerRootView style={{ flex: 1 }}>
<GlobalSheetBottom>
<AuthProvider>
<Routes />
</AuthProvider>
</GlobalSheetBottom>
</GestureHandlerRootView>
</PaperProvider>
</CustomSafeArea>
);
}