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

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

Open
bhs324 opened this issue Nov 26, 2020 · 0 comments · May be fixed by #24
Open

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

bhs324 opened this issue Nov 26, 2020 · 0 comments · May be fixed by #24

Comments

@bhs324
Copy link

bhs324 commented Nov 26, 2020

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>
@bhs324 bhs324 linked a pull request Nov 26, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant