Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

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

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>

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