From 2e7e937ea8a5c37b6e72af09939284f3e8963153 Mon Sep 17 00:00:00 2001 From: u-e Date: Tue, 25 Dec 2018 18:10:51 +0300 Subject: [PATCH] updated a bit --- src/components/posts/view/postsView.js | 23 +++++++++++++------ .../profile/container/profileContainer.js | 11 ++++++++- 2 files changed, 26 insertions(+), 8 deletions(-) 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 ? ( {