Skip to content

Commit

Permalink
Default sticky headers enabled on ios only.
Browse files Browse the repository at this point in the history
Summary:
They aren't normal for android, so don't make that the default.

some more context: facebook#11315 (comment)

Reviewed By: furdei

Differential Revision: D4648714

fbshipit-source-id: 3232a6914e3db82c2b300409663ce63412d892a6
  • Loading branch information
sahrens authored and dojiboy9 committed Mar 18, 2017
1 parent 722fec2 commit 323fe5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/CustomComponents/ListView/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'use strict';

var ListViewDataSource = require('ListViewDataSource');
var Platform = require('Platform');
var React = require('React');
var ReactNative = require('ReactNative');
var RCTScrollViewManager = require('NativeModules').ScrollViewManager;
Expand Down Expand Up @@ -329,7 +330,7 @@ var ListView = React.createClass({
renderScrollComponent: props => <ScrollView {...props} />,
scrollRenderAheadDistance: DEFAULT_SCROLL_RENDER_AHEAD,
onEndReachedThreshold: DEFAULT_END_REACHED_THRESHOLD,
stickySectionHeadersEnabled: true,
stickySectionHeadersEnabled: Platform.OS === 'ios',
stickyHeaderIndices: [],
};
},
Expand Down

0 comments on commit 323fe5b

Please sign in to comment.