# react-native-parallax-cached-image-view

> Parallax view for vertical scrollview with a cachable header image and header content. Inspired by react-native-parallax-view

Latest version **1.0.6** (published 2017-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-parallax-cached-image-view
pnpm add react-native-parallax-cached-image-view
yarn add react-native-parallax-cached-image-view
bun add react-native-parallax-cached-image-view
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2017-08-21 |
| First published | 2017-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Adel Bruno Grimm |
| Maintainers | adelbrunogrimm |
| Keywords | react, react-native, react-component, parallax, cached-images, blur-image |

## Links

- npm: https://www.npmjs.com/package/react-native-parallax-cached-image-view
- Repository: https://github.com/BigPun86/react-native-parallax-cached-image-view
- Issues: https://github.com/BigPun86/react-native-parallax-cached-image-view/issues
- npm.io page: https://npm.io/package/react-native-parallax-cached-image-view

## Dependencies (2)

- [react-native-image-progress](https://npm.io/package/react-native-image-progress.md) ^1.0.1
- [react-native-scrollable-mixin](https://npm.io/package/react-native-scrollable-mixin.md) ^1.0.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2017-08-21
- 1.0.5 — 2017-08-19
- 1.0.4 — 2017-08-19
- 1.0.3 — 2017-08-17
- 1.0.2 — 2017-08-17
- 1.0.1 — 2017-08-17
- 1.0.0 — 2017-08-17

## README

# react-native-parallax-cached-image-view

Parallax view with a cachable header image and header content.
This Module is an small improvement to react-native-parallax-view with some small fixes. Further on it forces image caching which helps when combining this module with a viewpager or some listviews. Including react-native-image-progress 

## Installation

```bash
$ npm i react-native-parallax-cached-image-view --save
```

## Demo

https://giphy.com/gifs/xF4a47qMoBu4U/html5

## Example

```jsx
<ParallaxView
    windowHeight={300}
    header={<Header author={author} />}
    blur={this.state.modalVisible ? 'light' : null}
    backgroundSource={{ uri: 'http://lorempixel.com/400/200/' }}
    scrollableViewStyle={{ backgroundColor: 'red' }}>
   <ParallaxBody/>
</ParallaxView>
```


## API (props)

| Prop | Required | Default  | Type | Description |
| :------------ |:---:|:---------------:| :---------------:| :-----|
| backgroundSource | YES | `null` | `object` | the `source` prop that get's passed to the background `<Image>` component. If left blank, no background is rendered |
| backgroundStyle | NO | `empty` | `object` | the `style` prop that get's passed to the background `<Image>` component. 
| header | NO | `null` | `renderable` | any content you want to render on top of the image. This content's opacity get's animated down as the scrollview scrolls up. (optional) |
| windowHeight | NO | `300` | `number` | the resting height of the header image. If 0 is passed in, the background is not rendered. |
| scrollableViewStyle | NO | `null` | `object` | this style will be mixed (overriding existing fields) with scrollable view style (view which is scrolled over the background) |
| ... | NO | | `...ScrollViewProps` | `{...this.props}` is applied on the internal `ScrollView` (excluding the `style` prop which is passed on to the outer container) |

---
_Source: https://npm.io/package/react-native-parallax-cached-image-view · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
