Skip to content

Commit b866eee

Browse files
committed
Fix navigation.replace documents
1 parent 926a657 commit b866eee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

versioned_docs/version-6.x/native-stack-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ Replaces the current screen with a new screen in the stack. The method accepts f
660660
- `params` - _object_ - Screen params to pass to the destination route.
661661

662662
```js
663-
navigation.push('Profile', { owner: 'Michaś' });
663+
navigation.replace('Profile', { owner: 'Michaś' });
664664
```
665665

666666
#### `push`

versioned_docs/version-7.x/native-stack-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ Replaces the current screen with a new screen in the stack. The method accepts f
658658
- `params` - _object_ - Screen params to pass to the destination route.
659659

660660
```js
661-
navigation.push('Profile', { owner: 'Michaś' });
661+
navigation.replace('Profile', { owner: 'Michaś' });
662662
```
663663

664664
#### `push`

0 commit comments

Comments
 (0)