diff --git a/src/app/screens/PluviometerSharingDataScreen.js b/src/app/screens/PluviometerSharingDataScreen.js index 7481079..3ac5f57 100644 --- a/src/app/screens/PluviometerSharingDataScreen.js +++ b/src/app/screens/PluviometerSharingDataScreen.js @@ -64,6 +64,7 @@ function PluviometerSharingDataScreen(props) { icon: "success", type: "success", }); + props.navigation.goBack(); props.navigation.navigate("Home"); }} validationSchema={validationSchema} diff --git a/src/app/screens/RainSharingDataScreen.js b/src/app/screens/RainSharingDataScreen.js index 805d84b..63eb3ba 100644 --- a/src/app/screens/RainSharingDataScreen.js +++ b/src/app/screens/RainSharingDataScreen.js @@ -62,6 +62,7 @@ function RainSharingDataScreen(props) { type: "success", onPress: () => { }, }); + props.navigation.goBack(); props.navigation.navigate("Home"); }} validationSchema={validationSchema} diff --git a/src/app/screens/RiverFloodSharingDataScreen.js b/src/app/screens/RiverFloodSharingDataScreen.js index 5a4a69a..1e1b5da 100644 --- a/src/app/screens/RiverFloodSharingDataScreen.js +++ b/src/app/screens/RiverFloodSharingDataScreen.js @@ -72,6 +72,7 @@ function RiverFloodSharingDataScreen(props) { icon: "success", type: "success", }); + props.navigation.goBack(); props.navigation.navigate("Home"); }} validationSchema={validationSchema} diff --git a/src/app/screens/SharingFloodZonesScreen.js b/src/app/screens/SharingFloodZonesScreen.js index edb7d0c..81f1ac3 100644 --- a/src/app/screens/SharingFloodZonesScreen.js +++ b/src/app/screens/SharingFloodZonesScreen.js @@ -68,6 +68,7 @@ function SharingFloodZonesScreen(props) { icon: "success", type: "success", }); + props.navigation.goBack(); props.navigation.navigate("Home"); }} validationSchema={validationSchema}