We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7563f08 + e919c4f commit 2d6e368Copy full SHA for 2d6e368
1 file changed
lib/NavigationService.ts
@@ -100,3 +100,10 @@ export const reset = (params: any) => {
100
navigationRef.current?.reset(params);
101
}
102
};
103
+
104
+export const replace = (params: any) => {
105
+ if (isReadyRef.current && navigationRef && navigationRef.current) {
106
+ // Perform navigation if the app has mounted
107
+ navigationRef.current?.replace(params);
108
+ }
109
+};
0 commit comments