diff --git a/src/app/screens/PluviometerSharingDataScreen.js b/src/app/screens/PluviometerSharingDataScreen.js index 0de58a2..57d57dd 100644 --- a/src/app/screens/PluviometerSharingDataScreen.js +++ b/src/app/screens/PluviometerSharingDataScreen.js @@ -65,7 +65,7 @@ function PluviometerSharingDataScreen(props) { icon: "success", type: "success", }); - props.navigation.goBack(null); + props.navigation.navigate("Home"); }} validationSchema={validationSchema} > diff --git a/src/app/screens/RainSharingDataScreen.js b/src/app/screens/RainSharingDataScreen.js index fe5d4fe..cb72fe1 100644 --- a/src/app/screens/RainSharingDataScreen.js +++ b/src/app/screens/RainSharingDataScreen.js @@ -56,7 +56,7 @@ function RainSharingDataScreen(props) { type: "success", onPress: () => {}, }); - props.navigation.goBack(null); + props.navigation.navigate("Home"); }} validationSchema={validationSchema} > diff --git a/src/app/screens/RiverFloodSharingDataScreen.js b/src/app/screens/RiverFloodSharingDataScreen.js index 3aee8a2..4e3973e 100644 --- a/src/app/screens/RiverFloodSharingDataScreen.js +++ b/src/app/screens/RiverFloodSharingDataScreen.js @@ -59,7 +59,7 @@ function RiverFloodSharingDataScreen(props) { icon: "success", type: "success", }); - props.navigation.goBack(null); + props.navigation.navigate("Home"); }} validationSchema={validationSchema} > diff --git a/src/app/screens/SharingFloodZonesScreen.js b/src/app/screens/SharingFloodZonesScreen.js index dee226a..a771fc3 100644 --- a/src/app/screens/SharingFloodZonesScreen.js +++ b/src/app/screens/SharingFloodZonesScreen.js @@ -63,7 +63,7 @@ function SharingFloodZonesScreen(props) { icon: "success", type: "success", }); - props.navigation.goBack(null); + props.navigation.navigate("Home"); }} validationSchema={validationSchema} >