# react-native-reanimated-stretchy

> test

Latest version **0.5.3** (published 2023-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-reanimated-stretchy
pnpm add react-native-reanimated-stretchy
yarn add react-native-reanimated-stretchy
bun add react-native-reanimated-stretchy
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.3 |
| Published | 2023-03-07 |
| First published | 2022-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 14.0.0 |
| Dependencies | 0 |
| Unpacked size | 47.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ramiel |
| Maintainers | itsramiel |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-reanimated-stretchy
- Repository: https://github.com/itsramiel/react-native-reanimated-stretchy
- Homepage: https://github.com/itsramiel/react-native-reanimated-stretchy#readme
- Issues: https://github.com/itsramiel/react-native-reanimated-stretchy/issues
- npm.io page: https://npm.io/package/react-native-reanimated-stretchy

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.5.3 (latest) — 2023-03-07
- 0.5.2 — 2023-02-08
- 0.5.1 — 2022-11-30
- 0.5.0 — 2022-11-30
- 0.4.0 — 2022-11-30
- 0.3.1 — 2022-11-30
- 0.3.0 — 2022-11-30
- 0.2.1 — 2022-11-29
- 0.2.0 — 2022-11-29

## README

# react-native-reanimated-stretchy

react native lists implemented with a stretchy header image

### Motive

I am working on a project that was using `react-native-stretchy`, but it has type issues and the header component of the `SectionList` and `FlatList` were unusable due to implementing the image header inside the header component prop.

With `react-native-reanimated-stretchy`, the types should work fine, you can use the headerComponent prop, and it uses reanimated for animations

## Installation

```sh
// npm
npm install react-native-reanimated-stretchy

// yarn
yarn add react-native-reanimated-stretchy
```

## Usage

```js
import * as React from 'react';

import { StyleSheet, View, Text, SafeAreaView } from 'react-native';
import { StretchyScrollView } from 'react-native-reanimated-stretchy';

export default function App() {
  return (
    <SafeAreaView style={styles.container}>
      <StretchyScrollView
        imageHeight={200}
        contentContainerStyle={styles.content}
        imageSource={require('../assets/image.jpg')}
        foreground={
          <View style={styles.foreground}>
            <Text style={styles.txt}>something here</Text>
          </View>
        }
      >
        {Array(20)
          .fill(0)
          .map((_, i) => (
            <View style={styles.box} key={i}>
              <Text>{i}</Text>
            </View>
          ))}
      </StretchyScrollView>
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  foreground: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'flex-end',
  },
  box: {
    height: 100,
    backgroundColor: 'pink',
    justifyContent: 'center',
    alignItems: 'center',
    margin: 10,
    borderRadius: 10,
  },
  txt: {
    fontWeight: 'bold',
    fontSize: 24,
    color: 'orange',
  },
  content: {
    backgroundColor: 'gray',
  },
});
```

### Limitations

- `paddingTop` of `contentContainerStyle` will be overriden if passed

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)

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