Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
fix bugs: #42
Browse files Browse the repository at this point in the history
  • Loading branch information
soliury committed May 6, 2016
1 parent e1c53dc commit 6c32c86
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/components/MessageList.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,25 +132,23 @@ class MessageList extends Component {
render() {
const {pending, didFocus, getMessageList} = this.props;
return (
<View style={[{width:width,height:height - 40},{backgroundColor:'white'}]}>
<ListView
enableEmptySections
showsVerticalScrollIndicator={true}
initialListSize={10}
pagingEnabled={false}
removeClippedSubviews={true}
dataSource={this.state.ds}
renderRow={this._renderRow.bind(this)}
renderHeader={this._renderHeader.bind(this)}
refreshControl={
<ListView
enableEmptySections
showsVerticalScrollIndicator={true}
initialListSize={10}
pagingEnabled={false}
removeClippedSubviews={true}
dataSource={this.state.ds}
renderRow={this._renderRow.bind(this)}
renderHeader={this._renderHeader.bind(this)}
refreshControl={
<RefreshControl
refreshing={pending || !didFocus}
onRefresh={()=>{getMessageList()}}
{...Constants.refreshControl}
/>
}
/>
</View>
/>
)
}
}
Expand Down

0 comments on commit 6c32c86

Please sign in to comment.