mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-03 03:25:24 +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 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 { injectIntl } from 'react-intl';
|
||||||
import { withNavigation } from 'react-navigation';
|
import { withNavigation } from 'react-navigation';
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ import { getPostsSummary } from '../../../providers/steem/dsteem';
|
|||||||
// COMPONENTS
|
// COMPONENTS
|
||||||
import { PostCard } from '../../postCard';
|
import { PostCard } from '../../postCard';
|
||||||
import { FilterBar } from '../../filterBar';
|
import { FilterBar } from '../../filterBar';
|
||||||
import { PostCardPlaceHolder, NoPost, RefreshControl } from '../../basicUIElements';
|
import { PostCardPlaceHolder, NoPost } from '../../basicUIElements';
|
||||||
import { POPULAR_FILTERS, PROFILE_FILTERS } from '../../../constants/options/filters';
|
import { POPULAR_FILTERS, PROFILE_FILTERS } from '../../../constants/options/filters';
|
||||||
|
|
||||||
// Styles
|
// Styles
|
||||||
@ -229,7 +229,6 @@ class PostsView extends Component {
|
|||||||
posts,
|
posts,
|
||||||
isPostsLoading,
|
isPostsLoading,
|
||||||
isHideImage,
|
isHideImage,
|
||||||
selectedFilterIndex,
|
|
||||||
isNoPost,
|
isNoPost,
|
||||||
} = this.state;
|
} = this.state;
|
||||||
const {
|
const {
|
||||||
@ -286,9 +285,16 @@ class PostsView extends Component {
|
|||||||
initialNumToRender={10}
|
initialNumToRender={10}
|
||||||
ListFooterComponent={this._renderFooter}
|
ListFooterComponent={this._renderFooter}
|
||||||
onScrollBeginDrag={() => this._handleOnScrollStart()}
|
onScrollBeginDrag={() => this._handleOnScrollStart()}
|
||||||
refreshControl={
|
refreshControl={(
|
||||||
<RefreshControl refreshing={refreshing} onRefresh={this._handleOnRefreshPosts} />
|
<RefreshControl
|
||||||
}
|
refreshing={refreshing}
|
||||||
|
onRefresh={this._handleOnRefreshPosts}
|
||||||
|
progressBackgroundColor="#357CE6"
|
||||||
|
tintColor={!isDarkTheme ? '#357ce6' : '#96c0ff'}
|
||||||
|
titleColor="#fff"
|
||||||
|
colors={['#fff']}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
ref={(ref) => {
|
ref={(ref) => {
|
||||||
this.flatList = ref;
|
this.flatList = ref;
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user