Skip to content

Commit

Permalink
Move listViewProps to the end (#882)
Browse files Browse the repository at this point in the history
It allows to override props like `style` as suggested on #795
  • Loading branch information
helielson authored and xcarpentier committed Jun 16, 2018
1 parent dd6c79f commit 36082ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MessageContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export default class MessageContainer extends React.PureComponent {
enableEmptySections
automaticallyAdjustContentInsets={false}
inverted={this.props.inverted}
{...this.props.listViewProps}
data={this.props.messages}
style={styles.listStyle}
contentContainerStyle={styles.contentContainerStyle}
Expand All @@ -109,6 +108,7 @@ export default class MessageContainer extends React.PureComponent {
renderFooter={this.renderLoadEarlier}
{...this.props.invertibleScrollViewProps}
ListFooterComponent={this.renderHeaderWrapper}
{...this.props.listViewProps}
/>
</View>
);
Expand Down

0 comments on commit 36082ff

Please sign in to comment.