-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
32 lines (26 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
import 'react-native-gesture-handler';
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
const Stack = createStackNavigator()
import Intro from './components/AppIntro'
import Login from './components/AuthLogin'
import Signup from './components/AuthSignup'
import Otp from './components/AuthOtp'
import MainApp from './components/AppMainNav'
const App = () => {
let isLogin = false
return (
<NavigationContainer>
<Stack.Navigator headerMode='none'
initialRouteName={isLogin ? 'MainApp' : 'Intro'}>
<Stack.Screen name="Intro" component={Intro} />
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="Signup" component={Signup} />
<Stack.Screen name="Otp" component={Otp} />
<Stack.Screen name="MainApp" component={MainApp} />
</Stack.Navigator>
</NavigationContainer>
)
};
export default App;