-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
34 lines (34 loc) · 1.05 KB
/
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
34
import { StatusBar } from 'expo-status-bar';
import {AppRegistry, StyleSheet, Text, View} from 'react-native';
import 'react-native-gesture-handler'
import {createDrawerNavigator} from '@react-navigation/drawer'
let Drawer = createDrawerNavigator()
import {NavigationContainer} from "@react-navigation/native";
import Main from "./components/Main";
import LoginView from "./views/LoginView";
import NativeStack from "./navigation/NativeStack";
import {store} from "./store/store";
import {Provider} from "react-redux";
import MainLayout from "./MainLayout";
export default function App() {
return (
// <NavigationContainer>
// <Drawer.Navigator>
// {/*@ts-ignore*/}
// <Drawer.Screen name={'Hrin'} component={Main}/>
// </Drawer.Navigator>
<Provider store={store}>
<MainLayout/>
</Provider>
// </NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
display:'flex',
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});