ProfileNavigator.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { View, Text , TouchableWithoutFeedback} from 'react-native'
  2. import React from 'react'
  3. import { createNativeStackNavigator } from '@react-navigation/native-stack'
  4. import ProfilePage from '../screens/ProfilePage';
  5. import SettingsPage from '../screens/SettingsPage';
  6. import EditProfilePage from '../screens/EditProfilePage';
  7. const Stack = createNativeStackNavigator();
  8. const ProfileNavigator = ({ route, navigation}) => {
  9. return (
  10. <Stack.Navigator
  11. initialRouteName='DisplayProfile'
  12. >
  13. <Stack.Screen
  14. name="DisplayProfile"
  15. options={(navigation) => ({
  16. headerShown: false
  17. })}
  18. component={ProfilePage}
  19. />
  20. <Stack.Screen
  21. name="Settings"
  22. options={(navigation) => ({
  23. headerShown: false
  24. })}
  25. component={SettingsPage}
  26. />
  27. <Stack.Screen
  28. name="EditProfile"
  29. options={(navigation) => ({
  30. headerShown: false
  31. })}
  32. component={EditProfilePage}
  33. />
  34. </Stack.Navigator>
  35. )
  36. }
  37. export default ProfileNavigator;