mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-07 20:40:20 +00:00
Fixed page rendering by using replace method aka strategy 2B from fix Video.
This commit is contained in:
1 parent
924b57186f
commit
68d67feab2
2 files changed
+2
-2
No files matched your search
@@ -39,7 +39,7 @@ const ModuleListScreen = ({navigation}) => {
|
||||
|
||||
const onModify = (module) => {
|
||||
handleModify(module);
|
||||
navigation.navigate('ModuleListScreen');
|
||||
navigation.replace('ModuleViewScreen', { module, onDelete, onModify });
|
||||
};
|
||||
|
||||
const goToViewScreen = (module) =>
|
||||
|
||||
@@ -11,7 +11,7 @@ export const ModuleViewScreen = ({navigation, route}) => {
|
||||
// State ----------------------
|
||||
// Handlers -------------------
|
||||
|
||||
const goToModifyScreen = () => navigation.navigate("ModuleModifyScreen", { module, onModify });
|
||||
const goToModifyScreen = () => navigation.replace("ModuleModifyScreen", { module, onModify });
|
||||
|
||||
// View -----------------------
|
||||
return (<Screen>
|
||||
|
||||
Reference in new issue
Block a user