react-native-headroom
A Scrollview with a header which hides when user scrolls down and reappears when user scrolls up.
Installation
npm install react-native-headroom --save
Example
Headroom
Properties
Any ScrollView
property and the following:
Prop | Description | Default |
---|---|---|
headerComponent |
The header component. | None |
headerHeight |
The header height. | None |
ScrollableComponent |
The scrollable component class (e.g. ScrollView or ListView). | None |
slideDuration |
How long should the slide animation take. | 400 |