[fix] ScrollView support for 'centerContent' prop

Fix #2331
Close #2332
This commit is contained in:
Fernando Rojo
2022-07-06 18:14:13 -04:00
committed by Nicolas Gallagher
parent 511e5537d1
commit 80ef32f6ee
4 changed files with 51 additions and 3 deletions
@@ -31,11 +31,14 @@ import { ScrollView } from 'react-native';
All the props supported by [View]({{ '/docs/view' | url }}).
{% endcall %}
{% call macro.prop('centerContent', '?boolean') %}
When `true`, the scroll view automatically centers the content when the content is smaller than the scroll view bounds; when the content is larger than the scroll view, this property has no effect.
{% endcall %}
{% call macro.prop('contentContainerStyle', '?Style') %}
These styles will be applied to the scroll view content container which wraps all of the child views.
{% endcall %}
{% call macro.prop('disableScrollViewPanResponder', '?boolean = false') %}
When `true`, the default `PanResponder` on the `ScrollView` is disabled, and full control over pointers inside the `ScrollView` is left to its child components. This is meant to be used when native "snap-to" scrolling behavior is needed.
{% endcall %}