Skip to content

Commit c8fd130

Browse files
authored
Fix typo in stack-navigator and native-stack-navigator for replace example
1 parent c7797c2 commit c8fd130

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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-6.x/stack-navigator.md

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

461461
```js
462-
navigation.push('Profile', { owner: 'Michaś' });
462+
navigation.replace('Profile', { owner: 'Michaś' });
463463
```
464464

465465
#### `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`

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

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

461461
```js
462-
navigation.push('Profile', { owner: 'Michaś' });
462+
navigation.replace('Profile', { owner: 'Michaś' });
463463
```
464464

465465
#### `push`

0 commit comments

Comments
 (0)