File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed
Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 3737@property (nonatomic ) BOOL customCells;
3838@property (nonatomic ) BOOL editing;
3939@property (nonatomic ) BOOL moveWithinSectionOnly;
40+ @property (nonatomic ) BOOL allowsSelectionDuringEditing;
4041@property (nonatomic , assign ) UIEdgeInsets contentInset;
4142@property (nonatomic , assign ) CGPoint contentOffset;
4243@property (nonatomic , assign ) UIEdgeInsets scrollIndicatorInsets;
Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ - (void)setEditing:(BOOL)editing {
4141 [self .tableView setEditing: editing animated: YES ];
4242}
4343
44+ - (void )setAllowsSelectionDuringEditing : (BOOL )allowsSelectionDuringEditing {
45+ _allowsSelectionDuringEditing = allowsSelectionDuringEditing;
46+
47+ [self .tableView setAllowsSelectionDuringEditing: allowsSelectionDuringEditing];
48+ }
49+
4450- (void )setSeparatorColor : (UIColor *)separatorColor {
4551 _separatorColor = separatorColor;
4652
@@ -210,6 +216,7 @@ - (void)createTableView {
210216 _tableView.delegate = self;
211217 _tableView.tableFooterView = [[UIView alloc ] initWithFrame: CGRectZero];
212218 _tableView.allowsMultipleSelectionDuringEditing = NO ;
219+ _tableView.allowsSelectionDuringEditing = self.allowsSelectionDuringEditing ;
213220 _tableView.contentInset = self.contentInset ;
214221 _tableView.contentOffset = self.contentOffset ;
215222 _tableView.scrollIndicatorInsets = self.scrollIndicatorInsets ;
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-tableview" ,
3- "version" : " 3.0 .0" ,
3+ "version" : " 3.1 .0" ,
44 "description" : " Native iOS TableView wrapper for React Native" ,
55 "main" : " src/index.js" ,
66 "types" : " src/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ class TableView extends React.Component {
196196 autoFocus : false ,
197197 alwaysBounceVertical : true ,
198198 scrollEnabled : true ,
199+ allowsSelectionDuringEditing : false ,
199200 sectionIndexTitlesEnabled : false ,
200201 showsHorizontalScrollIndicator : true ,
201202 showsVerticalScrollIndicator : true ,
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ export interface TableViewProps {
232232 tableViewCellEditingStyle ?: CellEditingStyle ;
233233 separatorStyle ?: SeparatorStyle ;
234234 editing ?: boolean ;
235+ allowsSelectionDuringEditing ?: boolean ;
235236 autoFocusAnimate ?: boolean ;
236237 autoFocus ?: boolean ;
237238 alwaysBounceVertical ?: boolean ;
You can’t perform that action at this time.
0 commit comments