react-native-gizwits-sticky-parallax-header
v2.0.2
Published
<div align="center"> <image align="center" src="./assets/readme_header.svg"/> </div> <div align="center"> <h1>Stickyheader.js</h1> </div>
Downloads
13
Readme
Introduction
| Tabbed Header | Avatar Header | Details Header | | :----------------------------------------------------: | :----------------------------------------------------: | :------------------------------------------------------: | | | | |
In Use
Check the live demo on Expo Snack here.
Predefined headers can be accessed through headerType="HeaderName"
property, each header can be configured according to your demands using the wide amount of properties. You can change all of them, or use it right out of the box with as little changes as possible to use it for your needs.
This is how you can add them in your app:
import React from 'react';
import StickyParallaxHeader from 'react-native-sticky-parallax-header';
const TestScreen = () => (
<>
<StickyParallaxHeader headerType="TabbedHeader" />
{/* <StickyParallaxHeader headerType="AvatarHeader" /> */}
{/* <StickyParallaxHeader headerType="DetailsHeader" /> */}
</>
);
export default TestScreen;
For React Native >= 0.60.0 use version 0.0.60 and above, for previous React Native versions use 0.0.59
Installation for React Native >= 0.60.0
Add latest package version
$ yarn add react-native-sticky-parallax-header
Installation for React Native < 0.60.0
Installation steps for React Native < 0.60.0
License
The gem is available as open source under the terms of the MIT License.