-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
26 lines (21 loc) · 841 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
import { createAppContainer, createSwitchNavigator } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import AuthenticatorScreen from './src/screens/AuthenticatorScreen';
import LoginScreen from './src/screens/auth/LoginScreen';
import RegisterScreen from './src/screens/auth/RegisterScreen';
import HomeScreen from './src/screens/home/HomeScreen';
import SearchScreen from './src/screens/home/SearchScreen';
const AppStack = createStackNavigator({ Home: HomeScreen, Search: SearchScreen });
const AuthStack = createStackNavigator({ Login: LoginScreen, Register: RegisterScreen });
export default createAppContainer(
createSwitchNavigator(
{
AuthLoading: AuthenticatorScreen,
App: AppStack,
Auth: AuthStack,
},
{
initialRouteName: 'AuthLoading',
}
)
);