forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPublicScreens.tsx
62 lines (58 loc) · 2.45 KB
/
PublicScreens.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import {createStackNavigator} from '@react-navigation/stack';
import React from 'react';
import type {PublicScreensParamList} from '@navigation/types';
import LogInWithShortLivedAuthTokenPage from '@pages/LogInWithShortLivedAuthTokenPage';
import AppleSignInDesktopPage from '@pages/signin/AppleSignInDesktopPage';
import GoogleSignInDesktopPage from '@pages/signin/GoogleSignInDesktopPage';
import SAMLSignInPage from '@pages/signin/SAMLSignInPage';
import SignInPage from '@pages/signin/SignInPage';
import UnlinkLoginPage from '@pages/UnlinkLoginPage';
import ValidateLoginPage from '@pages/ValidateLoginPage';
import NAVIGATORS from '@src/NAVIGATORS';
import SCREENS from '@src/SCREENS';
import defaultScreenOptions from './defaultScreenOptions';
const RootStack = createStackNavigator<PublicScreensParamList>();
function PublicScreens() {
return (
<RootStack.Navigator>
{/* The structure for the HOME route has to be the same in public and auth screens. That's why the name for SignInPage is BOTTOM_TAB_NAVIGATOR. */}
<RootStack.Screen
name={NAVIGATORS.BOTTOM_TAB_NAVIGATOR}
options={defaultScreenOptions}
component={SignInPage}
/>
<RootStack.Screen
name={SCREENS.TRANSITION_BETWEEN_APPS}
options={defaultScreenOptions}
component={LogInWithShortLivedAuthTokenPage}
/>
<RootStack.Screen
name={SCREENS.VALIDATE_LOGIN}
options={defaultScreenOptions}
component={ValidateLoginPage}
/>
<RootStack.Screen
name={SCREENS.UNLINK_LOGIN}
options={defaultScreenOptions}
component={UnlinkLoginPage}
/>
<RootStack.Screen
name={SCREENS.SIGN_IN_WITH_APPLE_DESKTOP}
options={defaultScreenOptions}
component={AppleSignInDesktopPage}
/>
<RootStack.Screen
name={SCREENS.SIGN_IN_WITH_GOOGLE_DESKTOP}
options={defaultScreenOptions}
component={GoogleSignInDesktopPage}
/>
<RootStack.Screen
name={SCREENS.SAML_SIGN_IN}
options={defaultScreenOptions}
component={SAMLSignInPage}
/>
</RootStack.Navigator>
);
}
PublicScreens.displayName = 'PublicScreens';
export default PublicScreens;