Browse Source

navigate to 'home' after form submission

master
analuizaff 4 years ago
parent
commit
bc2bc1a0ab
  1. 2
      src/app/screens/PluviometerSharingDataScreen.js
  2. 2
      src/app/screens/RainSharingDataScreen.js
  3. 2
      src/app/screens/RiverFloodSharingDataScreen.js
  4. 2
      src/app/screens/SharingFloodZonesScreen.js

2
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}
>

2
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}
>

2
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}
>

2
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}
>

Loading…
Cancel
Save