Files
frontend/src/screens/profile/ProfileScreen.tsx

21 lines
743 B
TypeScript
Raw Normal View History

/**
* ProfileScreen
* BBS -
* 使 UserProfileScreen mode='self'
*/
import React from 'react';
import { useNavigation } from '@react-navigation/native';
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
import UserProfileScreen from './UserProfileScreen';
import { ProfileStackParamList } from '../../navigation/types';
type ProfileNavigationProp = NativeStackNavigationProp<ProfileStackParamList, 'Profile'>;
export const ProfileScreen: React.FC = () => {
const profileNavigation = useNavigation<ProfileNavigationProp>();
return <UserProfileScreen mode="self" profileNavigation={profileNavigation} />;
};
export default ProfileScreen;