<div align="center"> <image align="center" src="./assets/readme_header.svg"/> </div> <div align="center"> <h1>Sticky Parallax Header</h1> </div>
npm install react-native-sticky-parallax-header
react-native-sticky-parallax-header is a simple React Native library, enabling to create a fully custom header layout for your iOS, Android and web apps.
Sticky Parallax Header ships with 3 different use cases for sticky headers and a possibility to create fully custom header!
| Tabbed Header | Avatar Header | Details Header |
| :----------------------------------------------------: | :----------------------------------------------------: | :------------------------------------------------------: |
| !Tabbed Header Gif | !Avatar Header Gif | !Details Header Gif |
Check the live demo on Expo Snack here.
This is how you can display header in your app:
``tsx
import * as React from 'react'
import { DetailsHeaderScrollView } from 'react-native-sticky-parallax-header'
import { SafeAreaProvider } from 'react-native-safe-area-context'
const TestScreen = () => (
{/* scroll view content /}
)
export default TestScreen
`
:information_source: Library supports react-native version 0.64+
#### Install latest library version
`sh`
$ yarn add react-native-sticky-parallax-header@rc
#### Install library's dependencies
`sh`
yarn add react-native-reanimated react-native-safe-area-context
After installation:
- check Reanimated installation guide
- handle Pods installation with npx pod-installSafeAreaProvider
- wrap your root component with from react-native-safe-area-context`
This library is available as open source under the terms of the MIT License.