mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 20:31:37 +03:00
Fixed feed issue on Android
This commit is contained in:
parent
8faa815030
commit
79f755b4a3
@ -1,5 +1,5 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import { FlatList, View, ActivityIndicator } from 'react-native';
|
||||
import { FlatList, View, ActivityIndicator, RefreshControl } from 'react-native';
|
||||
import { injectIntl } from 'react-intl';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
|
||||
@ -9,7 +9,7 @@ import { getPostsSummary } from '../../../providers/steem/dsteem';
|
||||
// COMPONENTS
|
||||
import { PostCard } from '../../postCard';
|
||||
import { FilterBar } from '../../filterBar';
|
||||
import { PostCardPlaceHolder, NoPost, RefreshControl } from '../../basicUIElements';
|
||||
import { PostCardPlaceHolder, NoPost } from '../../basicUIElements';
|
||||
import { POPULAR_FILTERS, PROFILE_FILTERS } from '../../../constants/options/filters';
|
||||
|
||||
// Styles
|
||||
@ -229,7 +229,6 @@ class PostsView extends Component {
|
||||
posts,
|
||||
isPostsLoading,
|
||||
isHideImage,
|
||||
selectedFilterIndex,
|
||||
isNoPost,
|
||||
} = this.state;
|
||||
const {
|
||||
@ -286,9 +285,16 @@ class PostsView extends Component {
|
||||
initialNumToRender={10}
|
||||
ListFooterComponent={this._renderFooter}
|
||||
onScrollBeginDrag={() => this._handleOnScrollStart()}
|
||||
refreshControl={
|
||||
<RefreshControl refreshing={refreshing} onRefresh={this._handleOnRefreshPosts} />
|
||||
}
|
||||
refreshControl={(
|
||||
<RefreshControl
|
||||
refreshing={refreshing}
|
||||
onRefresh={this._handleOnRefreshPosts}
|
||||
progressBackgroundColor="#357CE6"
|
||||
tintColor={!isDarkTheme ? '#357ce6' : '#96c0ff'}
|
||||
titleColor="#fff"
|
||||
colors={['#fff']}
|
||||
/>
|
||||
)}
|
||||
ref={(ref) => {
|
||||
this.flatList = ref;
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user