Skip to content

Commit

Permalink
Update UsingAListView.md - Add flex:1 to View
Browse files Browse the repository at this point in the history
Summary:
Add flex:1 to View's style prop, so the ListView can be scrolled.
Closes facebook#10304

Differential Revision: D3993754

Pulled By: JoelMarcey

fbshipit-source-id: 23d73b23310a5b39dea4cf3c6f3af0bf2901480f
  • Loading branch information
ronhe authored and Facebook Github Bot committed Oct 9, 2016
1 parent 770091f commit 79e1eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/UsingAListView.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ListViewBasics extends Component {
}
render() {
return (
<View style={{paddingTop: 22}}>
<View style={{flex: 1, paddingTop: 22}}>
<ListView
dataSource={this.state.dataSource}
renderRow={(rowData) => <Text>{rowData}</Text>}
Expand Down

0 comments on commit 79e1eac

Please sign in to comment.