jsdf / react-native-refreshable-listview

Deprecated. A pull-to-refresh ListView which shows a loading spinner while your data reloads
1.38k stars 168 forks source link

Pass on contentContainerStyle #55

Open mmelitzer opened 8 years ago

mmelitzer commented 8 years ago

It should be possible to set the custom content container styling for the List/ScrollView from the outside. Although the props are copied over the contentContainerStyle is set again later and therefore overwriting it. IMHO it should be enough to simply change (works perfectly fine): contentContainerStyle={this.getContentContainerStyle()} to contentContainerStyle={[this.getContentContainerStyle(), this.props.contentContainerStyle]}

in ControlledRefreshableListView without adding a separate prop as the ListView doesn't expose the prop either but instead simply copies it down to the ScrollView.