mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-26 15:58:28 +00:00
[fix] ScrollView support for 'centerContent' prop
Fix #2331 Close #2332
This commit is contained in:
committed by
Nicolas Gallagher
parent
511e5537d1
commit
80ef32f6ee
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user