diff --git a/src/components/posts/view/postsView.js b/src/components/posts/view/postsView.js index 068febb9d..e184280df 100644 --- a/src/components/posts/view/postsView.js +++ b/src/components/posts/view/postsView.js @@ -214,9 +214,14 @@ class PostsView extends Component { isNoPost, } = this.state; const { - filterOptions, intl, isLoggedIn, getFor, isLoginDone, tag, isDarkTheme, handleOnScroll, + filterOptions, + intl, + isLoggedIn, + getFor, + isLoginDone, + tag, + isDarkTheme, } = this.props; - /* eslint-disable */ return ( @@ -248,11 +253,13 @@ class PostsView extends Component { )} - {posts && posts.length > 0 && !isPostsLoading ? ( + {posts && posts.length > 0 && !isPostsLoading && ( } + renderItem={({ item }) => ( + + )} keyExtractor={(post, index) => index.toString()} onEndReached={() => this._loadPosts()} removeClippedSubviews @@ -264,19 +271,21 @@ class PostsView extends Component { onScrollBeginDrag={() => this._handleOnScrollStart()} refreshControl={( )} ref={(ref) => { this.flatList = ref; }} /> - ) : isNoPost ? ( + )} + + {isNoPost ? ( {