-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.tsx
33 lines (29 loc) · 786 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
import ErrorBoundary from 'react-native-error-boundary';
import {DefaultTheme, NavigationContainer} from '@react-navigation/native';
import 'react-native-gesture-handler';
import {PaperProvider, MD3LightTheme} from 'react-native-paper';
import Theme from './app/common/constants/theme.json';
import AppContainer from './AppContainer';
const theme = {
...MD3LightTheme,
colors: Theme.colors,
};
const navTheme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
background: Theme.colors.surface,
},
};
function App() {
return (
<NavigationContainer theme={navTheme}>
<PaperProvider theme={theme}>
<ErrorBoundary>
<AppContainer />
</ErrorBoundary>
</PaperProvider>
</NavigationContainer>
);
}
export default App;