-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
35 lines (33 loc) · 1.01 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
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {DefaultTheme, Provider as PaperProvider} from 'react-native-paper';
import {Provider as ReduxProvider} from 'react-redux';
import StackNavigation from './src/navigations/StackNavigation';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import FlashMessage from 'react-native-flash-message';
import {colors} from './src/constants/colors';
import store from './src/store';
//import 'moment/locale/tr'
const App = () => {
const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primary: colors.blue,
secondary: colors.babypink,
},
};
return (
<SafeAreaProvider>
<ReduxProvider store={store}>
<PaperProvider theme={theme}>
<FlashMessage position="top" />
<NavigationContainer>
<StackNavigation />
</NavigationContainer>
</PaperProvider>
</ReduxProvider>
</SafeAreaProvider>
);
};
export default App;