We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aec010 commit e919c4fCopy full SHA for e919c4f
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