MM-12652 Fix for android thread crash

This commit is contained in:
sudheer 2018-10-11 23:04:59 +05:30
parent 62026e375a
commit e480dcfacb

View file

@ -79,10 +79,11 @@ export default class PostList extends PostListBase {
} = this.props;
const otherProps = {};
const footer = typeof this.props.renderFooter === 'object' ? this.props.renderFooter : this.props.renderFooter();
if (postIds.length) {
otherProps.ListFooterComponent = this.props.renderFooter();
otherProps.ListFooterComponent = footer;
} else {
otherProps.ListEmptyComponent = this.props.renderFooter();
otherProps.ListEmptyComponent = footer;
}
const hasPostsKey = postIds.length ? 'true' : 'false';