-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
31 lines (29 loc) · 1.62 KB
/
App.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
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { NavigationContainer } from '@react-navigation/native';
import GetNameScreen from './screens/registration/screens/GetNameScreen';
import GetStartedScreen from './screens/registration/screens/GetStartedScreen';
import GetGenderScreen from './screens/registration/screens/GetGenderScreen';
import GetChildrenScreen from './screens/registration/screens/GetChildrenScreen';
import GetCredentialsScreen from './screens/registration/screens/GetCredentialsScreen';
import { UserRegistrationProvider } from './screens/registration/context/UserRegistrationContext';
import { SafeAreaView } from 'react-native';
import ConfirmationScreen from './screens/registration/screens/ConfirmationScreen';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<SafeAreaView style={{ flex: 1 }}>
<NavigationContainer>
<UserRegistrationProvider>
<Stack.Navigator screenOptions={{ headerShown: false, animation: 'slide_from_right' }} initialRouteName='get-started'>
<Stack.Screen name="get-started" component={GetStartedScreen} />
<Stack.Screen name="get-name" component={GetNameScreen} />
<Stack.Screen name="get-gender" component={GetGenderScreen} />
<Stack.Screen name="get-children" component={GetChildrenScreen} />
<Stack.Screen name="get-credentials" component={GetCredentialsScreen} />
<Stack.Screen name="confirmation" component={ConfirmationScreen} />
</Stack.Navigator>
</UserRegistrationProvider>
</NavigationContainer>
</SafeAreaView>
);
}