aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-10-27 14:16:50 -0700
committerGitHub <noreply@github.com>2020-10-27 17:16:50 -0400
commit9b9b1b792f914709de01e1d502014b8deb66e291 (patch)
tree8d403d2232cfab31c590acd26222bfa476de4dee /src/screens
parent9c7a867c1851914322a4b60f20223ae06a31c661 (diff)
[HOT FIX] Fix stack navigation (#78)
* Fix stack navigation * Fix stack navigation
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/profile/IndividualMoment.tsx2
-rw-r--r--src/screens/profile/MomentCommentsScreen.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/screens/profile/IndividualMoment.tsx b/src/screens/profile/IndividualMoment.tsx
index 91f76f9b..b76f36d0 100644
--- a/src/screens/profile/IndividualMoment.tsx
+++ b/src/screens/profile/IndividualMoment.tsx
@@ -91,7 +91,7 @@ const IndividualMoment: React.FC<IndividualMomentProps> = ({
title="Close"
buttonStyle={styles.button}
onPress={() => {
- navigation.navigate('Profile', {isProfileView: isProfileView});
+ navigation.pop();
}}
/>
</View>
diff --git a/src/screens/profile/MomentCommentsScreen.tsx b/src/screens/profile/MomentCommentsScreen.tsx
index 30dde8b4..0d685ad1 100644
--- a/src/screens/profile/MomentCommentsScreen.tsx
+++ b/src/screens/profile/MomentCommentsScreen.tsx
@@ -58,7 +58,7 @@ const MomentCommentsScreen: React.FC<MomentCommentsScreenProps> = ({route}) => {
buttonStyle={styles.button}
titleStyle={styles.buttonText}
onPress={() => {
- navigation.goBack();
+ navigation.pop();
}}
/>
<Text style={styles.headerText}>