Refresh indicator fix (#2361)
This commit is contained in:
parent
bfb0db866e
commit
55652d0007
4 changed files with 7 additions and 3 deletions
|
|
@ -93,11 +93,10 @@ export default class PostList extends PostListBase {
|
|||
channelId,
|
||||
highlightPostId,
|
||||
postIds,
|
||||
refreshing,
|
||||
} = this.props;
|
||||
|
||||
const refreshControl = {
|
||||
refreshing: false,
|
||||
};
|
||||
const refreshControl = {refreshing};
|
||||
|
||||
if (channelId) {
|
||||
refreshControl.onRefresh = this.handleRefresh;
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ export default class PostListBase extends PureComponent {
|
|||
onPostPress: PropTypes.func,
|
||||
onRefresh: PropTypes.func,
|
||||
postIds: PropTypes.array.isRequired,
|
||||
refreshing: PropTypes.bool.isRequired,
|
||||
renderFooter: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
||||
renderReplies: PropTypes.bool,
|
||||
serverURL: PropTypes.string.isRequired,
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ export default class ChannelPostList extends PureComponent {
|
|||
navigator: PropTypes.object,
|
||||
postIds: PropTypes.array.isRequired,
|
||||
postVisibility: PropTypes.number,
|
||||
refreshing: PropTypes.bool.isRequired,
|
||||
theme: PropTypes.object.isRequired,
|
||||
};
|
||||
|
||||
|
|
@ -165,6 +166,7 @@ export default class ChannelPostList extends PureComponent {
|
|||
loadMorePostsVisible,
|
||||
navigator,
|
||||
postIds,
|
||||
refreshing,
|
||||
theme,
|
||||
} = this.props;
|
||||
|
||||
|
|
@ -193,6 +195,7 @@ export default class ChannelPostList extends PureComponent {
|
|||
channelId={channelId}
|
||||
navigator={navigator}
|
||||
renderFooter={this.renderFooter}
|
||||
refreshing={refreshing}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ function mapStateToProps(state) {
|
|||
postVisibility: state.views.channel.postVisibility[channelId],
|
||||
lastViewedAt: getMyCurrentChannelMembership(state).last_viewed_at,
|
||||
loadMorePostsVisible: state.views.channel.loadMorePostsVisible,
|
||||
refreshing: state.views.channel.refreshing,
|
||||
theme: getTheme(state),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue