Socket
Socket
Sign inDemoInstall

@fabfit/react-native-parallax-header

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fabfit/react-native-parallax-header

Animated parallax headers for React Native


Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

React Native Parallax Header

Animated parallax headers for React Native as seen in our FabFit Studio App.

Installation

npm install @fabfit/react-native-parallax-header

or

yard add @fabfit/react-native-parallax-header

Usage

import ParallaxHeader from '@fabfit/react-native-parallax-header';

<ParallaxHeader
  maxHeight={300}
  minHeight={100}
  heroImage={{ uri: 'https://source.unsplash.com/user/erondu/600x300' }}
>
  <Text>All children will render below the parallax header</Text>
</ParallaxHeader>;

Props

NameDescriptionDefault
maxHeight (optional)Sets the maximum height of the header550
minHeight (optional)Sets the minimum height of the header170
childrenReact children-
renderOverlayRenders an overlay over the parallax header, e.g text-
renderHeader-
heroImageReact Native image props for display default image-

Examples

There are a number of examples that can be found in the /examples directory. If you'd like to run the examples you will need to:

  1. checkout this repository
  2. run yarn ; yarn bootstrap in the root
  3. run yarn example:ios which will run the example directory in a simulator

Keywords

FAQs

Package last updated on 05 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc