aboutsummaryrefslogtreecommitdiff
path: root/src/routes/Routes.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/Routes.tsx')
-rw-r--r--src/routes/Routes.tsx17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx
index 63486448..7379c2c2 100644
--- a/src/routes/Routes.tsx
+++ b/src/routes/Routes.tsx
@@ -3,14 +3,18 @@ import {createStackNavigator} from '@react-navigation/stack';
import {
Login,
- Registration,
+ RegistrationOne,
+ RegistrationTwo,
Verification,
Profile,
} from '../screens/onboarding';
export type RootStackParamList = {
Login: undefined;
- Registration: undefined;
+ RegistrationOne: undefined;
+ RegistrationTwo:
+ | {firstName: string; lastName: string; email: string}
+ | undefined;
Verification: {username: string; email: string; userId: string};
Profile: {username: string; userId: string};
};
@@ -28,8 +32,13 @@ const Routes: React.FC<RoutesProps> = ({}) => {
options={{headerShown: false}}
/>
<RootStack.Screen
- name="Registration"
- component={Registration}
+ name="RegistrationOne"
+ component={RegistrationOne}
+ options={{headerShown: false}}
+ />
+ <RootStack.Screen
+ name="RegistrationTwo"
+ component={RegistrationTwo}
options={{headerShown: false}}
/>
<RootStack.Screen