Socket
Socket
Sign inDemoInstall

react-native-parallax-scroll-view

Package Overview
Dependencies
0
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-parallax-scroll-view

A ScrollView-like component with parallax and sticky header support


Version published
Maintainers
1
Created

Readme

Source

react-native-parallax-scroll-view

A ScrollView-like component with parallax and sticky header support.

Tested with react-native 0.16.0 on Android and iOS.

Installation

$ npm install react-native-parallax-scroll-view --save

Demo

Example

Please refer to the Example provided.

Usage (API)

All of the properties of ParallaxScrollView are supported. Please refer to the ParallaxScrollView documentation for more detail.

The ParallaxScrollView component adds a few additional properties, as described below.

PropertyTypeRequiredDefaultDescription
renderParallaxHeaderfuncYesN/AThis renders the parallax header above the background.
parallaxHeaderHeightnumberYesThis is the height of parallax header.
backgroundColorstringNo'#000'This is the background color of sticky header, and also used as parallax header background color if renderBackground is not provided.
renderBackgroundfuncNoOpaque background using backgroundColor.This renders the background of the parallax header. Can be used to display cover images for example.
renderStickyHeaderfuncNoN/AThis renders an optional sticky header that will stick to the top of view when parallax header scrolls up.
stickyHeaderHeightnumberIf renderStickyHeader is used0If renderStickyHeader is set, then its height must be specified.
renderFixedHeaderfuncNoN/AThis renders an optional fixed header that will always be visible and fixed to the top of the view (and sticky header). You must set its height and width appropriately.

Keywords

FAQs

Last updated on 16 Dec 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc