-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
PublicScreens.js
44 lines (41 loc) · 1.48 KB
/
PublicScreens.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
36
37
38
39
40
41
42
43
44
import React from 'react';
import {createStackNavigator} from '@react-navigation/stack';
import SignInPage from '../../../pages/signin/SignInPage';
import SetPasswordPage from '../../../pages/SetPasswordPage';
import ValidateLoginPage from '../../../pages/ValidateLoginPage';
import LogInWithShortLivedTokenPage from '../../../pages/LogInWithShortLivedTokenPage';
import ConciergePage from '../../../pages/ConciergePage';
import SCREENS from '../../../SCREENS';
import defaultScreenOptions from './defaultScreenOptions';
const RootStack = createStackNavigator();
const PublicScreens = () => (
<RootStack.Navigator>
<RootStack.Screen
name={SCREENS.HOME}
options={defaultScreenOptions}
component={SignInPage}
/>
<RootStack.Screen
name={SCREENS.TRANSITION_FROM_OLD_DOT}
options={defaultScreenOptions}
component={LogInWithShortLivedTokenPage}
/>
<RootStack.Screen
name="ValidateLogin"
options={defaultScreenOptions}
component={ValidateLoginPage}
/>
<RootStack.Screen
name="SetPassword"
options={defaultScreenOptions}
component={SetPasswordPage}
/>
<RootStack.Screen
name="Concierge"
options={defaultScreenOptions}
component={ConciergePage}
/>
</RootStack.Navigator>
);
PublicScreens.displayName = 'PublicScreens';
export default PublicScreens;