Docs: minor update

This commit is contained in:
Nicolas Gallagher
2015-09-20 15:50:22 -07:00
parent 33082f988e
commit 565ec2fee8
5 changed files with 83 additions and 48 deletions

View File

@@ -1,27 +1,31 @@
# ScrollView
TODO
## Props
**children** any
**children**: any
**contentContainerStyle** style
Child content.
**contentContainerStyle**: style
These styles will be applied to the scroll view content container which wraps
all of the child views. Example:
**horizontal** bool
**horizontal**: bool = false
When true, the scroll view's children are arranged horizontally in a row instead of vertically in a column. Default: `false`.
**onScroll** function
**onScroll**: function
Fires at most once per frame during scrolling. The frequency of the events can be contolled using the `scrollEventThrottle` prop.
**scrollEnabled** bool
**scrollEnabled**: bool
When false, the content does not scroll. Default: `true`.
**scrollEventThrottle** number
**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
@@ -29,7 +33,7 @@ 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
[View](View.md) style