# expandablecard

> Animated expandable card for React Native

Latest version **1.0.8** (published 2022-03-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install expandablecard
pnpm add expandablecard
yarn add expandablecard
bun add expandablecard
```

## 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.8 |
| Published | 2022-03-15 |
| First published | 2022-03-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 548.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yasser |
| Maintainers | yasserkassem |
| Keywords | react-native, react-component, react-native-component, react, react native, mobile, ios, android, ui, expandable, expandable card, Animated expandable |

## Links

- npm: https://www.npmjs.com/package/expandablecard
- Repository: https://github.com/YasserKassem989979/ExpandableCard
- Homepage: https://github.com/YasserKassem989979/ExpandableCard#readme
- Issues: https://github.com/YasserKassem989979/ExpandableCard/issues
- npm.io page: https://npm.io/package/expandablecard

## 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

- 1.0.8 (latest) — 2022-03-15
- 1.0.7 — 2022-03-15
- 1.0.6 — 2022-03-15
- 1.0.5 — 2022-03-15
- 1.0.4 — 2022-03-15
- 1.0.3 — 2022-03-15
- 1.0.2 — 2022-03-15
- 1.0.1 — 2022-03-15
- 1.0.0 — 2022-03-14

## README

# expandablecard

A simple and animated expandable card for React Native.


Example             
:-------------------------:
![This is a demo.](/demo/demo.gif)

## Installation

```
npm i expandablecard
```

## Usage

```
import ExpandableCard from 'expandablecard';
```

```
<View style={{flex: 1}}>
            <ExpandableCard
                title='test card one'
                expanded>
                <View style={{ height: 200, width: 200, backgroundColor: 'red' }}>
                </View>
            </ExpandableCard>
            <ExpandableCard
                title='test card two'
                expanded={false}
                contentContainerStyle={{ alignItems: 'center' }}>
                <View>
                    <Image
                        style={{ height: 150, width: 200 }}
                        source={{ uri: 'https://cars.usnews.com/static/images/Auto/custom/14737/2022_Acura_ILX_1.jpg' }} />
                </View>
            </ExpandableCard>
            <ExpandableCard
                title='test card three'
                expanded>
                <View style={{ height: 300, width: 200, backgroundColor: 'orange' }}>
                </View>
            </ExpandableCard>
</View>
```

## Documentation

### Props
| Name                      | Description                              | Default     | Type    |
|---------------------------|------------------------------------------|-------------|---------|
| expanded                  | Whether to expand the card or not        | true        | Boolean |
| animationDuration         | Duration of animation in milliseconds    | 300         | Number  |
| iconSize                  | size on indicator                        | 24          | Number  |
| title                     | header title                             | ''          | String  |
| activeOpacity             | the opacity of header view when touch    | 0.8         | Number  |
| indicator                 | indicator component to render            | null        | component |
| headerStyle               | style for header                         | null        | ViewStyle |
| contentContainerStyle     | style for content wrapper                | null        | ViewStyle |
| containerStyle            | style for card Wrapper                   | null        | ViewStyle |
| contentHeight             | default height for body                  | 0           | Number  |

## Author
Yasser Kassem

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