Skip to content

onPress on Item doesn't work in edit mode #221

Description

@Great-hijack

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions