Skip to content

Commit 04fb47b

Browse files
committed
Link to scroll to top hook
1 parent 335dc2b commit 04fb47b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

versioned_docs/version-5.x/bottom-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ This event is fired when the user presses the tab button for the current screen
263263

264264
- If the tab is not focused, tab press will focus that tab
265265
- If the tab is already focused:
266-
- If the screen for the tab renders a scroll view, scroll to top is performed by `useScrollToTop`
266+
- If the screen for the tab renders a scroll view, you can use [`useScrollToTop`](use-scroll-to-top.md) to scroll it to top
267267
- If the screen for the tab renders a stack navigator, a `popToTop` action is performed on the stack
268268

269269
To prevent the default behavior, you can call `event.preventDefault`:

versioned_docs/version-5.x/material-bottom-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ This event is fired when the user presses the tab button for the current screen
145145

146146
- If the tab is not focused, tab press will focus that tab
147147
- If the tab is already focused:
148-
- If the screen for the tab renders a scroll view, scroll to top is performed by `useScrollToTop`
148+
- If the screen for the tab renders a scroll view, you can use [`useScrollToTop`](use-scroll-to-top.md) to scroll it to top
149149
- If the screen for the tab renders a stack navigator, a `popToTop` action is performed on the stack
150150

151151
To prevent the default behavior, you can call `event.preventDefault`:

versioned_docs/version-5.x/material-top-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ This event is fired when the user presses the tab button for the current screen
324324

325325
- If the tab is not focused, tab press will focus that tab
326326
- If the tab is already focused:
327-
- If the screen for the tab renders a scroll view, scroll to top is performed by `useScrollToTop`
327+
- If the screen for the tab renders a scroll view, you can use [`useScrollToTop`](use-scroll-to-top.md) to scroll it to top
328328
- If the screen for the tab renders a stack navigator, a `popToTop` action is performed on the stack
329329

330330
To prevent the default behavior, you can call `event.preventDefault`:

0 commit comments

Comments
 (0)