-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
39 lines (36 loc) · 1.48 KB
/
App.js
File metadata and controls
39 lines (36 loc) · 1.48 KB
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
38
39
import { StatusBar } from 'expo-status-bar';
import 'react-native-gesture-handler';
import { StyleSheet, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import LoginPage from './screens/Test';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import AfterLogin from './screens/AfterLogin';
import Signup from './screens/Signup';
import AuthScreen from './screens/AuthScreen';
import MyForm from './screens/Test';
const Stack = createNativeStackNavigator();
export default function App() {
return (
// <>
// <MyForm></MyForm>
// </>
<NavigationContainer>
<Stack.Navigator initialRouteName='Login'>
<Stack.Screen name="Login" component={AuthScreen} options={{ title: 'Login', headerShown: false }} />
{/* <Stack.Screen name="test" component={LoginPage} options={{ title: 'Login', headerShown: false }} /> */}
<Stack.Screen name="signup" component={Signup} options={{ title: 'Registration', headerShown: false }} />
<Stack.Screen name="afterlog" component={AfterLogin} options={{ title: 'AfterLogin', headerShown: false }} />
</Stack.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});