Skip to content

Appbar Action onPress not working #1509

@danbarretto

Description

@danbarretto

Hello, I'm trying to open a menu with a Appbar Action, but it seems that onPress is not working even if a just do a console log.

My code:
`
<Appbar.Header>
<Appbar.Content title="SegurUSP" />

    <Menu
      visible={visible}
      onDismiss={closeMenu}
      anchor={
        <Appbar.Action
          icon="dots-vertical"
          onPress={openMenu}
          color="white"></Appbar.Action>
      }>
      <Menu.Item title="Item 1" />
      <Menu.Item title="Item 2" />
      <Menu.Item title="Item 3" />
    </Menu>
    <Appbar.Action
      icon="archive"
      onPress={() => console.log('Pressed archive')}
    />
  </Appbar.Header>
  <Map></Map>
</PaperProvider>`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions