ProfileNavigator.js 866 B

123456789101112131415161718192021222324252627282930
  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. const Stack = createNativeStackNavigator();
  7. const ProfileNavigator = ({ route, navigation}) => {
  8. return (
  9. <Stack.Navigator
  10. initialRouteName='Profile'
  11. >
  12. <Stack.Screen
  13. name="Profile"
  14. options={(navigation) => ({
  15. })}
  16. component={ProfilePage}
  17. />
  18. <Stack.Screen
  19. name="Settings"
  20. options={(navigation) => {
  21. }}
  22. component={SettingsPage}
  23. />
  24. </Stack.Navigator>
  25. )
  26. }