Skip to content

The header does not receive touch events, when providing the minimum height #23

@bhs324

Description

@bhs324

To specify the minimum height of the header, I gave the headerHeight less than the actual height. As I expected, the header was displayed at the minimum height in a collapsed state. But in this state, the buttons in the header did not work.
It seems that the touchable height follows the specified headerHeight, not the actual height of the header.

    <CollapsibleHeaderScrollView
      CollapsibleHeaderComponent={
        <>
          <View style={{height: 100}} />
          <Button style={{height: 100}} onPress={() => console.log('pressed')}>
            <Text>BUTTON</Text>
          </Button>
        </>
      }
      headerHeight={100}
    >
      <View style={{height: 5000, backgroundColor: 'wheat'}} />
    </CollapsibleHeaderScrollView>

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