Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ Colors:
- `selectedTextColor`
- `detailTextColor`
- `separatorColor`
- `sectionIndexColor`
- `headerTextColor`
- `headerBackgroundColor`
- `footerTextColor`
Expand Down
1 change: 1 addition & 0 deletions RNTableView/RNTableView.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
@property(nonatomic, strong) UIColor *selectedBackgroundColor;
@property(nonatomic, strong) UIColor *detailTextColor;
@property(nonatomic, strong) UIColor *separatorColor;
@property(nonatomic, strong) UIColor *sectionIndexColor;
@property(nonatomic) BOOL autoFocus;
@property(nonatomic) BOOL autoFocusAnimate;
@property(nonatomic) BOOL allowsToggle;
Expand Down
1 change: 1 addition & 0 deletions RNTableView/RNTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ - (void)createTableView {
_tableView.tableFooterView = view;
_tableView.separatorStyle = self.separatorStyle;
_tableView.separatorColor = self.separatorColor;
_tableView.sectionIndexColor = self.sectionIndexColor;
_tableView.scrollEnabled = self.scrollEnabled;
_tableView.editing = self.editing;
_reactModuleCellReuseIndentifier = @"ReactModuleCell";
Expand Down
1 change: 1 addition & 0 deletions RNTableView/RNTableViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ - (NSArray *)customDirectEventTypes
RCT_EXPORT_VIEW_PROPERTY(headerBackgroundColor, UIColor)
RCT_EXPORT_VIEW_PROPERTY(footerTextColor, UIColor)
RCT_EXPORT_VIEW_PROPERTY(separatorColor, UIColor)
RCT_EXPORT_VIEW_PROPERTY(sectionIndexColor, UIColor)
RCT_EXPORT_VIEW_PROPERTY(moveWithinSectionOnly, BOOL)
RCT_EXPORT_VIEW_PROPERTY(allowsToggle, BOOL)
RCT_EXPORT_VIEW_PROPERTY(allowsMultipleSelection, BOOL)
Expand Down
2 changes: 2 additions & 0 deletions src/TableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class TableView extends React.Component {
footerFontStyle: FontStyle,
footerFontFamily: PropTypes.string,
separatorColor: PropTypes.string,
sectionIndexColor: PropTypes.string,
separatorStyle: PropTypes.number,
scrollEnabled: PropTypes.bool,
sectionIndexTitlesEnabled: PropTypes.bool,
Expand Down Expand Up @@ -228,6 +229,7 @@ class TableView extends React.Component {
headerTextColor: null,
footerTextColor: null,
separatorColor: null,
sectionIndexColor: null,
onChange: () => null,
onScroll: () => null,
onPress: () => null,
Expand Down
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ export interface TableViewProps {
headerBackgroundColor?: string;
footerTextColor?: string;
separatorColor?: string;
sectionIndexColor?: string;
fontSize?: number;
fontWeight?: FontWeight;
fontStyle?: FontStyle;
Expand Down