diff --git a/versioned_docs/version-6.x/native-stack-navigator.md b/versioned_docs/version-6.x/native-stack-navigator.md index 1b2dbeae544..67f096165ae 100755 --- a/versioned_docs/version-6.x/native-stack-navigator.md +++ b/versioned_docs/version-6.x/native-stack-navigator.md @@ -660,7 +660,7 @@ Replaces the current screen with a new screen in the stack. The method accepts f - `params` - _object_ - Screen params to pass to the destination route. ```js -navigation.push('Profile', { owner: 'Michaś' }); +navigation.replace('Profile', { owner: 'Michaś' }); ``` #### `push` diff --git a/versioned_docs/version-7.x/native-stack-navigator.md b/versioned_docs/version-7.x/native-stack-navigator.md index c1deaffe0cb..e535f68150e 100755 --- a/versioned_docs/version-7.x/native-stack-navigator.md +++ b/versioned_docs/version-7.x/native-stack-navigator.md @@ -658,7 +658,7 @@ Replaces the current screen with a new screen in the stack. The method accepts f - `params` - _object_ - Screen params to pass to the destination route. ```js -navigation.push('Profile', { owner: 'Michaś' }); +navigation.replace('Profile', { owner: 'Michaś' }); ``` #### `push`