Skip to content

Commit 780eca0

Browse files
committed
Rephrase
1 parent 35e9e6f commit 780eca0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

versioned_docs/version-7.x/nesting-navigators.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ When nesting navigators, there are some things to keep in mind:
177177

178178
### Each navigator keeps its own navigation history
179179

180-
For example, when you press the back button of a stack navigator nested within another navigator, it will go to the previous screen of the closest ancestor navigator, for which in this case it is the stack navigator.
180+
For example, lets say you have a stack navigator (lets call it `StackA`) nested within another navigator (lets call it `NavigatorB`). When you press the back button in a screen inside `StackA`, it will go to the previous screen of the closest ancestor navigator of the screen - i.e. `StackA`.
181+
182+
If the current screen is the first screen in `StackA`, then pressing back will go to the previous screen in `NavigatorB`.
181183

182184
### Each navigator has its own options
183185

versioned_docs/version-8.x/nesting-navigators.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ When nesting navigators, there are some things to keep in mind:
100100

101101
### Each navigator keeps its own navigation history
102102

103-
For example, when you press the back button when inside a screen in a nested stack navigator, it'll go back to the previous screen inside the nested stack even if there's another navigator as the parent.
103+
For example, lets say you have a stack navigator (lets call it `StackA`) nested within another navigator (lets call it `NavigatorB`). When you press the back button in a screen inside `StackA`, it will go to the previous screen of the closest ancestor navigator of the screen - i.e. `StackA`.
104+
105+
If the current screen is the first screen in `StackA`, then pressing back will go to the previous screen in `NavigatorB`.
104106

105107
### Each navigator has its own options
106108

0 commit comments

Comments
 (0)