Skip to content

A simple React Native library, enabling the creation of fully customized header for your iOS and Android apps.

License

Notifications You must be signed in to change notification settings

netguru/sticky-parallax-header

Folders and files

NameName
Last commit message
Last commit date
Apr 7, 2022
Jul 5, 2022
Oct 6, 2022
Apr 7, 2023
Apr 15, 2022
May 27, 2022
May 10, 2023
Jun 29, 2022
May 10, 2023
Jun 30, 2022
Oct 7, 2021
Sep 22, 2020
Sep 7, 2021
Oct 6, 2022
Mar 10, 2020
Oct 6, 2022
Sep 28, 2020
Jul 27, 2022
Sep 22, 2020
Sep 7, 2021
May 11, 2023
Jun 29, 2022
Jun 29, 2022
Jul 27, 2022

Repository files navigation

Sticky Parallax Header


Brought with  ❤️ by   Netguru logo

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
Tabbed Header Gif Avatar Header Gif Details Header Gif

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

ℹ️ 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 from react-native-safe-area-context

Contributing

Contributing guidelines

License

This library is available as open source under the terms of the MIT License.