diff --git a/RCTTableView/RCTTableView.m b/RCTTableView/RCTTableView.m index eb8bea0..18a4502 100644 --- a/RCTTableView/RCTTableView.m +++ b/RCTTableView/RCTTableView.m @@ -223,6 +223,10 @@ -(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteg return _sections[section][@"label"]; } +-(NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section { + return _sections[section][@"footerLabel"]; +} + -(NSMutableDictionary *)dataForRow:(NSInteger)row section:(NSInteger)section { return (NSMutableDictionary *)_sections[section][@"items"][row]; } diff --git a/index.js b/index.js index d7364bb..c8be147 100644 --- a/index.js +++ b/index.js @@ -60,7 +60,12 @@ var TableView = React.createClass({ } }); - sections.push({label:section.props.label, items: items, count: count}); + sections.push({ + label: section.props.label, + footerLabel: section.props.footerLabel, + items: items, + count: count + }); } if (section.type==TableView.Item){ var el = clone(section.props);