...
|
...
|
@@ -4,7 +4,6 @@ import React from 'react'; |
|
|
import ReactNative from 'react-native';
|
|
|
import ScrollableTabView, {DefaultTabBar} from 'react-native-scrollable-tab-view';
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
|
|
|
import UserCenterTop from './UserCenterTop';
|
|
|
import CommunityList from './CommunityList';
|
|
|
import ReplyList from './ReplyList';
|
...
|
...
|
@@ -233,6 +232,9 @@ export default class User extends React.Component { |
|
|
page={0}
|
|
|
endReachedViewHeight={this.initialPageHeight}
|
|
|
endReached={this.props.endReached}
|
|
|
onContentSizeChange={() => {
|
|
|
this.scrollableTabView && this.scrollableTabView.goToPage(this.currentPage);
|
|
|
}}
|
|
|
/>
|
|
|
|
|
|
<CommunityList
|
...
|
...
|
@@ -249,6 +251,9 @@ export default class User extends React.Component { |
|
|
page={1}
|
|
|
endReachedViewHeight={this.initialPageHeight}
|
|
|
endReached={this.props.endReached}
|
|
|
onContentSizeChange={() => {
|
|
|
this.scrollableTabView && this.scrollableTabView.goToPage(this.currentPage);
|
|
|
}}
|
|
|
/>
|
|
|
|
|
|
<ReplyList
|
...
|
...
|
@@ -262,6 +267,9 @@ export default class User extends React.Component { |
|
|
onPressPost={this.props.onPressPost}
|
|
|
endReached={this.props.endReached}
|
|
|
endReachedViewHeight={this.initialPageHeight}
|
|
|
onContentSizeChange={() => {
|
|
|
this.scrollableTabView && this.scrollableTabView.goToPage(this.currentPage);
|
|
|
}}
|
|
|
/>
|
|
|
|
|
|
</ScrollableTabView>
|
...
|
...
|
|