Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Great-hijack opened this issue Aug 12, 2021 · 0 comments
Open

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

Great-hijack opened this issue Aug 12, 2021 · 0 comments

Comments

@Great-hijack
Copy link

Great-hijack commented Aug 12, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant