From 9b9b1b792f914709de01e1d502014b8deb66e291 Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:16:50 -0700 Subject: [HOT FIX] Fix stack navigation (#78) * Fix stack navigation * Fix stack navigation --- src/screens/profile/IndividualMoment.tsx | 2 +- src/screens/profile/MomentCommentsScreen.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/screens') 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 = ({ title="Close" buttonStyle={styles.button} onPress={() => { - navigation.navigate('Profile', {isProfileView: isProfileView}); + navigation.pop(); }} /> 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 = ({route}) => { buttonStyle={styles.button} titleStyle={styles.buttonText} onPress={() => { - navigation.goBack(); + navigation.pop(); }} /> -- cgit v1.2.3-70-g09d2