Browse Source

Fixing navigation stack cache when information is inserted

master
GabrielTrettel 3 years ago
parent
commit
7117179bf2
  1. 1
      src/app/screens/PluviometerSharingDataScreen.js
  2. 1
      src/app/screens/RainSharingDataScreen.js
  3. 1
      src/app/screens/RiverFloodSharingDataScreen.js
  4. 1
      src/app/screens/SharingFloodZonesScreen.js

1
src/app/screens/PluviometerSharingDataScreen.js

@ -64,6 +64,7 @@ function PluviometerSharingDataScreen(props) {
icon: "success", icon: "success",
type: "success", type: "success",
}); });
props.navigation.goBack();
props.navigation.navigate("Home"); props.navigation.navigate("Home");
}} }}
validationSchema={validationSchema} validationSchema={validationSchema}

1
src/app/screens/RainSharingDataScreen.js

@ -62,6 +62,7 @@ function RainSharingDataScreen(props) {
type: "success", type: "success",
onPress: () => { }, onPress: () => { },
}); });
props.navigation.goBack();
props.navigation.navigate("Home"); props.navigation.navigate("Home");
}} }}
validationSchema={validationSchema} validationSchema={validationSchema}

1
src/app/screens/RiverFloodSharingDataScreen.js

@ -72,6 +72,7 @@ function RiverFloodSharingDataScreen(props) {
icon: "success", icon: "success",
type: "success", type: "success",
}); });
props.navigation.goBack();
props.navigation.navigate("Home"); props.navigation.navigate("Home");
}} }}
validationSchema={validationSchema} validationSchema={validationSchema}

1
src/app/screens/SharingFloodZonesScreen.js

@ -68,6 +68,7 @@ function SharingFloodZonesScreen(props) {
icon: "success", icon: "success",
type: "success", type: "success",
}); });
props.navigation.goBack();
props.navigation.navigate("Home"); props.navigation.navigate("Home");
}} }}
validationSchema={validationSchema} validationSchema={validationSchema}

Loading…
Cancel
Save