react-native-sticky-parallax-header

esm
<div align="center"> <image align="center" src="./assets/readme_header.svg"/> </div> <div align="center"> <h1>Sticky Parallax Header</h1> </div>
Version 1.1.1 License MIT
INSTALL
Type:
Version:
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.0
- 0.0.61
- 0.0.60
- 0.0.59
- 0.0.58
- 0.0.57
- 0.0.56
- 0.0.55
- 0.0.54
- 0.0.53
- 0.0.52
- 0.0.51
- 0.0.50
- 0.0.49
- 0.0.48
- 0.0.47
- 0.0.46
- 0.0.45
- 0.0.44
- 0.0.43
- 0.0.42
- 0.0.41
- 0.0.40
- 0.0.39
- 0.0.38
- 0.0.37
- 0.0.36
- 0.0.35
- 0.0.34
- 0.0.33
- 0.0.32
- 0.0.31
- 0.0.30
- 0.0.29
- 0.0.28
- 0.0.27
- 0.0.26
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- 1.0.0-rc.9
- 1.0.0-rc.8
- 1.0.0-rc.7
- 1.0.0-rc.6
- 1.0.0-rc.5
- 1.0.0-rc.4
- 1.0.0-rc.3
- 1.0.0-rc.2
- 1.0.0-rc.1
- 1.0.0-rc.0
<script type="module"> import reactNativeStickyParallaxHeader from 'https://cdn.jsdelivr.net/npm/react-native-sticky-parallax-header@1.1.1/+esm' </script>
Sticky Parallax Header
Introduction
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.
Documentation
Read the full Docs at: https://netguru.github.io/sticky-parallax-header/
Preview
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 |
---|---|---|
![]() |
![]() |
![]() |
In Use
Check the live demo on Expo Snack here.
This is how you can display header in your app:
import * as React from 'react'
import { DetailsHeaderScrollView } from 'react-native-sticky-parallax-header'
import { SafeAreaProvider } from 'react-native-safe-area-context'
const TestScreen = () => (
<SafeAreaProvider>
<DetailsHeaderScrollView {...scrollProps} {...detailsHeaderProps}>
{/** scroll view content */}
</DetailsHeaderScrollView>
</SafeAreaProvider>
)
export default TestScreen
Installation
Installation & requirements
:information_source: Library supports react-native version 0.64+
Install latest library version
$ yarn add react-native-sticky-parallax-header@rc
Install library's dependencies
yarn add react-native-reanimated react-native-safe-area-context
After installation:
- check Reanimated installation guide
- handle Pods installation with
npx pod-install
- wrap your root component with
SafeAreaProvider
fromreact-native-safe-area-context
Contributing
License
This library is available as open source under the terms of the MIT License.