个人中心优化 review by liben
Showing
1 changed file
with
6 additions
and
2 deletions
@@ -96,14 +96,18 @@ export default class MineList extends React.Component { | @@ -96,14 +96,18 @@ export default class MineList extends React.Component { | ||
96 | renderRow={this._renderRow} | 96 | renderRow={this._renderRow} |
97 | renderHeader={this._renderHeader} | 97 | renderHeader={this._renderHeader} |
98 | onScroll={(event) => { | 98 | onScroll={(event) => { |
99 | + // console.log('onScrollonScrollonScroll') | ||
100 | + // console.log(event.nativeEvent.contentOffset.y) | ||
99 | ReactNative.NativeModules.YH_MineHelper.updateNavBarState(event.nativeEvent.contentOffset.y); | 101 | ReactNative.NativeModules.YH_MineHelper.updateNavBarState(event.nativeEvent.contentOffset.y); |
100 | - if (Platform.OS === 'ios' && event.nativeEvent.contentOffset.y < -60) { | 102 | + }} |
103 | + onScrollEndDrag={(event) => { | ||
104 | + if (profile.uid != '0' && Platform.OS === 'ios' && event.nativeEvent.contentOffset.y < -60) { | ||
101 | this.props.onMineCenterRefresh && this.props.onMineCenterRefresh(); | 105 | this.props.onMineCenterRefresh && this.props.onMineCenterRefresh(); |
102 | } | 106 | } |
103 | }} | 107 | }} |
104 | refreshControl= | 108 | refreshControl= |
105 | { | 109 | { |
106 | - Platform.OS === 'ios' ? null: | 110 | + profile.uid == '0' || Platform.OS === 'ios' ? null: |
107 | <RefreshControl | 111 | <RefreshControl |
108 | refreshing={false} | 112 | refreshing={false} |
109 | onRefresh={() => { | 113 | onRefresh={() => { |
-
Please register or login to post a comment