Skip to content

Commit e0c52c6

Browse files
authored
[docs] Add scrollsChildToFocus prop to ScrollView (Android, 0.85) (react#5077)
1 parent 658768c commit e0c52c6

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

docs/scrollview.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,16 @@ Tag used to log scroll performance on this scroll view. Will force momentum even
608608

609609
---
610610

611+
### `scrollsChildToFocus` <div className="label android">Android</div>
612+
613+
When `true`, the ScrollView automatically scrolls to bring a focused child into view. Set to `false` to disable this behavior and take manual control of scroll position when focus changes.
614+
615+
| Type | Default |
616+
| ---- | ------- |
617+
| bool | `true` |
618+
619+
---
620+
611621
### `scrollToOverflowEnabled` <div className="label ios">iOS</div>
612622

613623
When `true`, the scroll view can be programmatically scrolled beyond its content size.

website/versioned_docs/version-0.85/scrollview.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,16 @@ Tag used to log scroll performance on this scroll view. Will force momentum even
608608

609609
---
610610

611+
### `scrollsChildToFocus` <div className="label android">Android</div>
612+
613+
When `true`, the ScrollView automatically scrolls to bring a focused child into view. Set to `false` to disable this behavior and take manual control of scroll position when focus changes.
614+
615+
| Type | Default |
616+
| ---- | ------- |
617+
| bool | `true` |
618+
619+
---
620+
611621
### `scrollToOverflowEnabled` <div className="label ios">iOS</div>
612622

613623
When `true`, the scroll view can be programmatically scrolled beyond its content size.

website/versioned_docs/version-0.86/scrollview.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,16 @@ Tag used to log scroll performance on this scroll view. Will force momentum even
608608

609609
---
610610

611+
### `scrollsChildToFocus` <div className="label android">Android</div>
612+
613+
When `true`, the ScrollView automatically scrolls to bring a focused child into view. Set to `false` to disable this behavior and take manual control of scroll position when focus changes.
614+
615+
| Type | Default |
616+
| ---- | ------- |
617+
| bool | `true` |
618+
619+
---
620+
611621
### `scrollToOverflowEnabled` <div className="label ios">iOS</div>
612622

613623
When `true`, the scroll view can be programmatically scrolled beyond its content size.

0 commit comments

Comments
 (0)