bamlab / react-native-image-header-scroll-view

ScrollView with an image in header which becomes a navbar
MIT License
990 stars 94 forks source link

Cannot tap element on renderHeader #60

Closed mkrotel14 closed 5 years ago

mkrotel14 commented 5 years ago

I made a Header using react native-base library to control better the Left and Right position. By doing this, the onPress function inside a Button (again, from native base) doesn't do anything

<HeaderScrolLView
    renderHeader={() => (
        <Header>
            <Left>
                <Button onPress={() => this.someFunction(someProps) >
                    <Icon name='arrow-back' />
                </Button>
            </Left>
        </Header>
    )}
>
{ . . . }
</HeaderScrollView>
Nhacsam commented 5 years ago

I am sorry but it is a known issue. The scrollView is above the header and get the touch. See https://github.com/bamlab/react-native-image-header-scroll-view/issues/6 fro details