React Native Hidden Header
A component that hides the header as you swipe up and down.
$ npm install --save react-native-hidden-header$ yarn add react-native-hidden-headerUSAGE
Use internal scrollView:
import HiddenHeader from 'react-native-hidden-header';
[...]
render() {
    return (
      <HiddenHeader
        header={()=> (
          <View style={styles.header}>
            <Text style={styles.headerText}>Header</Text>
          </View>
        )}
        refreshControl={(
          <RefreshControl
            onRefresh={() => this.onRefresh()}
            refreshing={loading}
            style={{ backgroundColor: 'black' }}
            tintColor={Colors.white}
          />
        )}
      >
        <View style={styles.block}>
            <Text>This is content</Text>
        </View>
      </HiddenHeader>
    );
  }You can find the gif example under example/normal.js:
| Prop | Type | Description | 
|---|---|---|
| header | () => ReactElement<any> | Prop to render the header Component | 
| refreshControl | () => <RefreshControl /> | Prop that renders the RefreshControl (from <Scrollview>) Component | 
| startHiddenHeaderOffset | ?number | When offsetY reach this value, header will start hide. | 
| headerWrapStyle | ?Object | The styles of the header wrap element. | 
iOS / Android
forked and upgraded from https://github.com/fengliu222/react-native-swipe-hidden-header
