-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
37 lines (33 loc) · 898 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
33
34
35
36
37
import * as React from 'react';
import Layout from './src/layout/Layout.js';
import StoreProvider from './src/context/Provider.js';
import {
PaperProvider,
MD3LightTheme as DefaultTheme,
} from 'react-native-paper';
import 'react-native-gesture-handler';
import Toast from 'react-native-toast-message';
import { WithSplashScreen } from './src/layout/Splash.js';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primary: '#1da1f2',
},
};
const App = () => {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<StoreProvider>
<WithSplashScreen>
<PaperProvider theme={theme}>
<Layout />
<Toast />
</PaperProvider>
</WithSplashScreen>
</StoreProvider>
</GestureHandlerRootView>
);
};
export default App;