Update ListView sticky header docs

Summary:
Sticky headers work on android now, but are only enabled by default on ios, so reflect that in the docs.

cc janicduplessis
Closes https://github.com/facebook/react-native/pull/12860

Differential Revision: D4691071

fbshipit-source-id: 0e28f948dc587561b6f20c3615cdf65dfebd9b73
This commit is contained in:
Spencer Ahrens 2017-03-10 13:25:31 -08:00 committed by Facebook Github Bot
parent f28f5d34d0
commit 82ff298c00
1 changed files with 3 additions and 3 deletions

View File

@ -228,8 +228,9 @@ var ListView = React.createClass({
* Makes the sections headers sticky. The sticky behavior means that it
* will scroll with the content at the top of the section until it reaches
* the top of the screen, at which point it will stick to the top until it
* is pushed off the screen by the next section header.
* @platform ios
* is pushed off the screen by the next section header. This property is
* not supported in conjunction with `horizontal={true}`. Only enabled by
* default on iOS because of typical platform standards.
*/
stickySectionHeadersEnabled: React.PropTypes.bool,
/**
@ -238,7 +239,6 @@ var ListView = React.createClass({
* `stickyHeaderIndices={[0]}` will cause the first child to be fixed to the
* top of the scroll view. This property is not supported in conjunction
* with `horizontal={true}`.
* @platform ios
*/
stickyHeaderIndices: PropTypes.arrayOf(PropTypes.number).isRequired,
/**