aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/profile')
-rw-r--r--src/components/profile/FollowCount.tsx2
-rw-r--r--src/components/profile/Followers.tsx2
-rw-r--r--src/components/profile/ProfilePreview.tsx4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/components/profile/FollowCount.tsx b/src/components/profile/FollowCount.tsx
index 9cace17d..80d56de4 100644
--- a/src/components/profile/FollowCount.tsx
+++ b/src/components/profile/FollowCount.tsx
@@ -27,7 +27,7 @@ const FollowCount: React.FC<FollowCountProps> = ({
return (
<TouchableOpacity
onPress={() =>
- navigation.navigate('FollowersListScreen', {
+ navigation.push('FollowersListScreen', {
isProfileView: isProfileView,
isFollowers: mode === 'followers',
})
diff --git a/src/components/profile/Followers.tsx b/src/components/profile/Followers.tsx
index bee02e07..6f56c03c 100644
--- a/src/components/profile/Followers.tsx
+++ b/src/components/profile/Followers.tsx
@@ -20,7 +20,7 @@ const Followers: React.FC<FollowersListProps> = ({result, sectionTitle}) => {
buttonStyle={styles.button}
titleStyle={styles.buttonText}
onPress={() => {
- navigation.goBack();
+ navigation.pop();
}}
/>
<Text style={styles.title}>{sectionTitle}</Text>
diff --git a/src/components/profile/ProfilePreview.tsx b/src/components/profile/ProfilePreview.tsx
index c527746a..ec0be50c 100644
--- a/src/components/profile/ProfilePreview.tsx
+++ b/src/components/profile/ProfilePreview.tsx
@@ -132,11 +132,11 @@ const ProfilePreview: React.FC<ProfilePreviewProps> = ({
loadProfile(user.id, user.username);
updateMoments(true);
if (!isComment) {
- navigation.navigate('Profile', {
+ navigation.push('Profile', {
isProfileView: true,
});
} else {
- navigation.navigate('ProfileView', {
+ navigation.push('ProfileView', {
isProfileView: true,
});
}