DoSomethingArchive / LetsDoThis-iOS

:iphone: iOS source code for DoSomething: Take Action on the News
http://app.dosomething.org
MIT License
2 stars 0 forks source link

Use enableEmptySections for Profile #1028

Closed aaronschachter closed 8 years ago

aaronschachter commented 8 years ago

Introduced by https://github.com/DoSomething/LetsDoThis-iOS/pull/1027#issuecomment-221306770 on Profiles with an empty Doing or Done section:

Warning: In next release empty section headers will be rendered. In this release you can use 'enableEmptySections' flag to render empty section headers.

aaronschachter commented 8 years ago

Per https://facebook.github.io/react-native/docs/listview.html#enableemptysections:

Flag indicating whether empty section headers should be rendered. In the future release empty section headers will be rendered by default, and the flag will be deprecated. If empty sections are not desired to be rendered their indices should be excluded from sectionID object.