diff --git a/src/component/list.js b/src/component/list.js index c3ebd078e..59df69051 100644 --- a/src/component/list.js +++ b/src/component/list.js @@ -50,6 +50,7 @@ export class List extends Component { ref={component => (this.list = component)} dataSource={this.dataSource} renderHeader={this.props.renderHeader} + stickyHeaderIndices={[0]} renderRow={this.props.renderItem} enableEmptySections={true} /> diff --git a/src/view/channel.js b/src/view/channel.js index 5ceba9e61..2ee1b3095 100644 --- a/src/view/channel.js +++ b/src/view/channel.js @@ -108,7 +108,7 @@ const ChannelList = ({ store, channel }) => { } + renderHeader={ChannelListHeader} renderItem={item => ( ( - + STATUS CAPACITY FUNDING TRANSACTION ID diff --git a/src/view/notification.js b/src/view/notification.js index 9229ffd76..ad78af718 100644 --- a/src/view/notification.js +++ b/src/view/notification.js @@ -26,7 +26,7 @@ const NotificationView = ({ store, nav }) => { } + renderHeader={NotificationListHeader} renderItem={item => } /> @@ -96,10 +96,13 @@ const hStyles = StyleSheet.create({ color: color.greyListHeader, fontSize: font.sizeXS, }, + header: { + backgroundColor: color.blackDark, + }, }); const NotificationListHeader = () => ( - + TYPE TIME DESCRIPTION diff --git a/src/view/transaction.js b/src/view/transaction.js index acb00e6de..3c5845b50 100644 --- a/src/view/transaction.js +++ b/src/view/transaction.js @@ -28,7 +28,7 @@ const TransactionView = ({ store, nav, transaction }) => { } + renderHeader={TransactionListHeader} renderItem={item => ( ( - + STATUS DATE diff --git a/stories/component/list-story.js b/stories/component/list-story.js index 2dcd5ba0d..8b6839212 100644 --- a/stories/component/list-story.js +++ b/stories/component/list-story.js @@ -16,7 +16,7 @@ storiesOf('List', module).add('List Content', () => ( ({ id: String(i), data: 'foo' }))} renderHeader={() => ( - + ID Data