mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-02 02:25:22 +00:00
ScrollView: initial docs
This commit is contained in:
@@ -4,19 +4,34 @@
|
|||||||
|
|
||||||
**children** any
|
**children** any
|
||||||
|
|
||||||
Content to display over the image.
|
**contentContainerStyle** style
|
||||||
|
|
||||||
|
These styles will be applied to the scroll view content container which wraps
|
||||||
|
all of the child views. Example:
|
||||||
|
|
||||||
|
**horizontal** bool
|
||||||
|
|
||||||
|
When true, the scroll view's children are arranged horizontally in a row instead of vertically in a column. Default: `false`.
|
||||||
|
|
||||||
|
**onScroll** function
|
||||||
|
|
||||||
|
Fires at most once per frame during scrolling. The frequency of the events can be contolled using the `scrollEventThrottle` prop.
|
||||||
|
|
||||||
|
**scrollEnabled** bool
|
||||||
|
|
||||||
|
When false, the content does not scroll. Default: `true`.
|
||||||
|
|
||||||
|
**scrollEventThrottle** number
|
||||||
|
|
||||||
|
This controls how often the scroll event will be fired while scrolling (in
|
||||||
|
events per seconds). A higher number yields better accuracy for code that is
|
||||||
|
tracking the scroll position, but can lead to scroll performance problems.
|
||||||
|
Default: `0` (the scroll event will be sent only once each time the view is
|
||||||
|
scrolled.)
|
||||||
|
|
||||||
**style** style
|
**style** style
|
||||||
|
|
||||||
+ `property` type
|
[View](View.md) style
|
||||||
|
|
||||||
Defaults:
|
|
||||||
|
|
||||||
```js
|
|
||||||
{
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user