123456789101112131415161718192021222324252627282930313233343536373839 |
- import 'react-native-gesture-handler';
- import React from 'react';
- import { createStackNavigator } from '@react-navigation/stack';
- import { DefaultTheme, Provider } from 'react-native-paper'
- import RegisterCredentials from '../screens/RegisterCredentials';
- import RegisterPassword from '../screens/RegisterPassword';
- import RegisterMeasurements from '../screens/RegisterMeasurements';
- import { RegistrationFormProvider } from '../contexts/RegisterContext';
- import RegisterImage from '../screens/RegisterImage';
- import RegisterResult from '../screens/RegistrationResult';
- const RegistrationStack = createStackNavigator();
- const theme = {
- ...DefaultTheme,
- colors: {
- primary: '#df3f3f',
- accent: 'white',
- },
- }
- const RegistrationStackNavigator = () => {
- return(
- <RegistrationFormProvider>
- <RegistrationStack.Navigator screenOptions={{
- headerTransparent: true,
- headerTintColor: 'white',
- headerTitle: ""
- }} initialRouteName="Credentials">
- <RegistrationStack.Screen name="Credentials" component={RegisterCredentials} />
- <RegistrationStack.Screen name="Password" component={RegisterPassword} />
- <RegistrationStack.Screen name="Measurements" component={RegisterMeasurements} />
- <RegistrationStack.Screen name="RegisterImage" component={RegisterImage} />
- <RegistrationStack.Screen name="RegisterResult" component={RegisterResult} />
- </RegistrationStack.Navigator>
- </RegistrationFormProvider>
- )
- }
- export default RegistrationStackNavigator;
|