From e480dcfacb8b3827b6eeedc3dacf18bd4dbd9c5b Mon Sep 17 00:00:00 2001 From: sudheer Date: Thu, 11 Oct 2018 23:04:59 +0530 Subject: [PATCH] MM-12652 Fix for android thread crash --- app/components/post_list/post_list.android.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/post_list/post_list.android.js b/app/components/post_list/post_list.android.js index 56d25e5f3..015d1797d 100644 --- a/app/components/post_list/post_list.android.js +++ b/app/components/post_list/post_list.android.js @@ -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';