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

Commit 6c32c86

Browse files
author
soliury
committed
fix bugs: #42
1 parent e1c53dc commit 6c32c86

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/components/MessageList.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -132,25 +132,23 @@ class MessageList extends Component {
132132
render() {
133133
const {pending, didFocus, getMessageList} = this.props;
134134
return (
135-
<View style={[{width:width,height:height - 40},{backgroundColor:'white'}]}>
136-
<ListView
137-
enableEmptySections
138-
showsVerticalScrollIndicator={true}
139-
initialListSize={10}
140-
pagingEnabled={false}
141-
removeClippedSubviews={true}
142-
dataSource={this.state.ds}
143-
renderRow={this._renderRow.bind(this)}
144-
renderHeader={this._renderHeader.bind(this)}
145-
refreshControl={
135+
<ListView
136+
enableEmptySections
137+
showsVerticalScrollIndicator={true}
138+
initialListSize={10}
139+
pagingEnabled={false}
140+
removeClippedSubviews={true}
141+
dataSource={this.state.ds}
142+
renderRow={this._renderRow.bind(this)}
143+
renderHeader={this._renderHeader.bind(this)}
144+
refreshControl={
146145
<RefreshControl
147146
refreshing={pending || !didFocus}
148147
onRefresh={()=>{getMessageList()}}
149148
{...Constants.refreshControl}
150149
/>
151150
}
152-
/>
153-
</View>
151+
/>
154152
)
155153
}
156154
}

0 commit comments

Comments
 (0)