-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathApp.js
32 lines (30 loc) · 830 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
32
import 'expo-dev-client';
import React from 'react';
import { RootSiblingParent } from 'react-native-root-siblings';
import { NavigationContainer, DefaultTheme } from '@react-navigation/native';
import { Provider as PaperProvider } from 'react-native-paper';
import { LogBox } from 'react-native';
LogBox.ignoreAllLogs();
import StackNavigator from './routes/StackNavigator';
import { AuthProvider } from './hooks/useAuth';
const MyTheme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
secondary: 'transparent',
onSurface: '#ffffff',
}
};
export default function App() {
return (
<NavigationContainer>
<AuthProvider>
<RootSiblingParent>
<PaperProvider theme={MyTheme}>
<StackNavigator />
</PaperProvider>
</RootSiblingParent>
</AuthProvider>
</NavigationContainer>
);
}