react-native-peeking-header

1.0.2 • Public • Published

react-native-peeking-header

Simple header component that hides when scrolling down and shows up again when scrolling up.

Installation

npm install react-native-peeking-header

or

yarn add react-native-peeking-header

Result

Usage

The component functions as a scrollview and has a render prop to render your header.

import PeekingHeader from 'react-native-peeking-header';
 
import YourComponent from './YourComponent';
 
 
const App = () => (
  <PeekingHeader renderHeader={top => <YourComponent showBackground={top} />}>
    // scrollable content
  </PeekingHeader>
)

License

@rootstrap/react-native-peeking-header is available under the MIT license. See the LICENSE file for more info.

Credits

react-native-peeking-header is maintained by Rootstrap with the help of our contributors.

Package Sidebar

Install

npm i react-native-peeking-header

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

3.73 kB

Total Files

3

Last publish

Collaborators

  • rootstrap-developers
  • manueljuarez
  • nmachado
  • fsarachu-dev
  • felipegarcia92
  • aguschaer
  • dpresa
  • spereztoledo