react-native-collapsible-header-views icon indicating copy to clipboard operation
react-native-collapsible-header-views copied to clipboard

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

Open bhs324 opened this issue 4 years ago • 0 comments
trafficstars

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 avatar Nov 26 '20 07:11 bhs324