import React from 'react'; import { IndividualMoment, CaptionScreen, SocialMediaTaggs, SearchScreen, ProfileScreen, } from '../../screens'; import {ProfileStack, ProfileStackParams} from './ProfileStack'; import {RouteProp} from '@react-navigation/native'; import {AvatarTitle} from '../../components'; type ProfileStackRouteProps = RouteProp; interface ProfileStackProps { route: ProfileStackRouteProps; } const Profile: React.FC = ({route}) => { const {isProfileView} = route.params; return ( ({ cardStyle: { opacity: progress.interpolate({ inputRange: [0, 0.5, 0.9, 1], outputRange: [0, 0.25, 0.7, 1], }), }, overlayStyle: { backgroundColor: '#808080', opacity: progress.interpolate({ inputRange: [0, 1], outputRange: [0, 0.9], extrapolate: 'clamp', }), }, }), }} mode="modal" initialRouteName={!isProfileView ? 'Profile' : 'Search'}> {isProfileView ? ( ) : ( )} , }} /> {!isProfileView ? ( ) : ( )} ); }; export default Profile;