Skip to content

TouchableOpacity onPress not called when component is rendered in the sidebar #9

Open
@mgenov

Description

The TouchableOpacity's onPress call is not called when the component is rendered in the sidebar.

This is the component definition:

const IconButton = ({
  onPress,
  name,
  family,
  size,
  disabled,
  color,
  style
}) => (
  <TouchableOpacity style={style} onPress={onPress} disabled={disabled}>
    <Icon
      name={name}
      family={family}
      size={size}
      color={disabled ? (color ? color : theme.colors.disabled) : color}
    />
  </TouchableOpacity>
)

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