You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/native-stack-navigator.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -1351,7 +1351,8 @@ Navigates back to a previous screen in the stack by popping screens after it. Th
1351
1351
1352
1352
-`name` - _string_ - Name of the route to navigate to.
1353
1353
-`params` - _object_ - Screen params to pass to the destination route.
1354
-
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
1354
+
-`options` - Options object containing the following properties:
1355
+
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
1355
1356
1356
1357
If a matching screen is not found in the stack, this will pop the current screen and add a new screen with the specified name and params.
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/navigation-actions.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,9 @@ The `navigate` action allows to navigate to a specific route. It takes the follo
28
28
29
29
-`name` - _string_ - A destination name of the screen in the current or a parent navigator.
30
30
-`params` - _object_ - Params to use for the destination route.
31
-
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
31
+
-`options` - Options object containing the following properties:
32
+
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
33
+
-`pop` - _boolean_ - Whether screens should be popped to navigate to a matching screen in the stack. Defaults to `false`.
32
34
33
35
<TabsgroupId="config"queryString="config">
34
36
<TabItemvalue="static"label="Static"default>
@@ -292,6 +294,7 @@ The `navigate` action can also accepts an object as the argument with the follow
292
294
- `name` - _string_ - A destination name of the screen in the current or a parent navigator
293
295
- `params` - _object_ - Params to use for the destination route.
294
296
- `merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
297
+
- `pop` - _boolean_ - Whether screens should be popped to navigate to a matching screen in the stack. Defaults to `false`.
295
298
- `path` - _string_ - The path (from deep link or universal link) to associate with the screen.
296
299
297
300
This is primarily used internally to associate a path with a screen when it's from a URL.
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/navigation-object.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,9 @@ The `navigate` method lets us navigate to another screen in your app. It takes t
76
76
77
77
-`name` - _string_ - A destination name of the screen in the current or a parent navigator.
78
78
-`params` - _object_ - Params to use for the destination route.
79
-
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
79
+
-`options` - Options object containing the following properties:
80
+
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
81
+
-`pop` - _boolean_ - Whether screens should be popped to navigate to a matching screen in the stack. Defaults to `false`.
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/stack-actions.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -534,7 +534,8 @@ The method accepts the following arguments:
534
534
535
535
-`name` - _string_ - Name of the route to navigate to.
536
536
-`params` - _object_ - Screen params to pass to the destination route.
537
-
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
537
+
-`options` - Options object containing the following properties:
538
+
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/stack-navigator.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -587,7 +587,8 @@ Navigates back to a previous screen in the stack by popping screens after it. Th
587
587
588
588
-`name` - _string_ - Name of the route to navigate to.
589
589
-`params` - _object_ - Screen params to pass to the destination route.
590
-
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
590
+
-`options` - Options object containing the following properties:
591
+
-`merge` - _boolean_ - Whether params should be merged with the existing route params, or replace them (when navigating to an existing screen). Defaults to `false`.
591
592
592
593
If a matching screen is not found in the stack, this will pop the current screen and add a new screen with the specified name and params.
0 commit comments