Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit faaf3b0

Browse files
author
Karl Ranna
committed
Force sticky headers for all list components
1 parent 38bc300 commit faaf3b0

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

src/component/list.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class List extends Component {
5050
ref={component => (this.list = component)}
5151
dataSource={this.dataSource}
5252
renderHeader={this.props.renderHeader}
53-
stickyHeaderIndices={this.props.stickyHeaderIndices}
53+
stickyHeaderIndices={[0]}
5454
renderRow={this.props.renderItem}
5555
enableEmptySections={true}
5656
/>
@@ -62,7 +62,6 @@ List.propTypes = {
6262
data: PropTypes.array.isRequired,
6363
renderHeader: PropTypes.func,
6464
renderItem: PropTypes.func.isRequired,
65-
stickyHeaderIndices: PropTypes.array,
6665
};
6766

6867
//

src/view/channel.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ const ChannelList = ({ store, channel }) => {
107107
/>
108108
<ListContent>
109109
<List
110-
stickyHeaderIndices={[0]}
111110
data={channels}
112111
renderHeader={ChannelListHeader}
113112
renderItem={item => (

src/view/notification.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const NotificationView = ({ store, nav }) => {
2828
data={notifications}
2929
renderHeader={NotificationListHeader}
3030
renderItem={item => <NotificationListItem item={item} />}
31-
stickyHeaderIndices={[0]}
3231
/>
3332
</ListContent>
3433
</Background>

src/view/transaction.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const TransactionView = ({ store, nav, transaction }) => {
3535
onSelect={() => transaction.select({ item })}
3636
/>
3737
)}
38-
stickyHeaderIndices={[0]}
3938
/>
4039
</ListContent>
4140
</Background>

0 commit comments

Comments
 (0)