react-native-tableview icon indicating copy to clipboard operation
react-native-tableview copied to clipboard

onPress on Item doesn't work in edit mode

Open Great-hijack opened this issue 4 years ago • 0 comments

onPress on Item doesn't work in edit mode though I tried to add allowsSelectionDuringEditing={true} props

      <TableView
        style={{height: 100, borderWidth: 1}}
        scrollEnabled={false}
        allowsSelectionDuringEditing={true} // <----
        tableViewStyle={Consts.Style.Grouped}
        tableViewCellStyle={Consts.CellStyle.Value1}>
        <Section label={'Section 1'}>
          <Item detail="Detail" accessoryType={Consts.AccessoryType.DisclosureIndicator} onPress={onPressHome}>
            {'Home'}
          </Item>
        </Section>
        <Section canMove canEdit label={'Section 2'}>
          <Item>Item 1</Item>
          <Item>Item 2</Item>
          <Item>Item 3</Item>
          <Item>Item 4</Item>
        </Section>
      </TableView>

I thought allowsSelectionDuringEditing will make the Item clickable although in edit mode. Do I misunderstand the meaning?

Great-hijack avatar Aug 12 '21 01:08 Great-hijack