Skip to content

Commit

Permalink
Add note about collapsable
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Sep 20, 2016
1 parent 7443ad5 commit 46832f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ const ScrollView = 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}`.
*
* **Note:**
* On Android if sticky headers are not working properly make sure the child
* views are not getting collapsed by adding collapsable={false} on each child.
*/
stickyHeaderIndices: PropTypes.arrayOf(PropTypes.number),
style: StyleSheetPropType(ViewStylePropTypes),
Expand Down
4 changes: 4 additions & 0 deletions Libraries/CustomComponents/ListView/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ 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}`.
*
* **Note:**
* On Android if sticky headers are not working properly make sure the child
* views are not getting collapsed by adding collapsable={false} on each child.
*/
stickyHeaderIndices: PropTypes.arrayOf(PropTypes.number).isRequired,
/**
Expand Down

0 comments on commit 46832f4

Please sign in to comment.