-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
35 lines (34 loc) · 989 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
import React from 'react';
import {SafeAreaView} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {Provider} from 'react-redux';
import Orientation from 'react-native-orientation-locker';
import MainStack from './src/redxam/navigations/MainStack';
import styles from './src/styles/AppStyle';
import {store} from './src/redux/store';
import {ThemeProvider} from 'react-native-elements';
import {thememode} from './src/utils/Variables';
const theme = {
Avatar: {
rounded: true,
},
Badge: {
textStyle: {fontSize: 30},
},
};
//Orientation.lockToLandscape();
Orientation.lockToPortrait()
const App = () => {
return (
<SafeAreaView style={styles.mainContainer}>
<ThemeProvider useDark={thememode === 'light'}>
<Provider store={store}>
<NavigationContainer>
<MainStack />
</NavigationContainer>
</Provider>
</ThemeProvider>
</SafeAreaView>
);
};
export default App;