# @meecode/react-native-accordion

> Animated accordion component for React Native with React 17 and React Native 0.64.3 Support

Latest version **1.1.4** (published 2023-02-10) · MIT license · 1 weekly downloads

## Install

```sh
npm install @meecode/react-native-accordion
pnpm add @meecode/react-native-accordion
yarn add @meecode/react-native-accordion
bun add @meecode/react-native-accordion
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score; declining downloads.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2023-02-10 |
| First published | 2022-08-04 |
| Weekly downloads | 1 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 252.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Gapur Kassym |
| Maintainers | meecodebymariomurrent |
| Keywords | react, react-native, react-component, accordion, react-native-component, native, mobile, ios, android, collapse |

## Links

- npm: https://www.npmjs.com/package/@meecode/react-native-accordion
- Repository: https://github.com/Gapur/react-native-accordion
- Homepage: https://github.com/Gapur/react-native-accordion#readme
- Issues: https://github.com/Gapur/react-native-accordion/issues
- npm.io page: https://npm.io/package/@meecode/react-native-accordion

## 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.1.4 (latest) — 2023-02-10
- 1.1.3 — 2022-12-12
- 1.1.2 — 2022-08-12
- 1.1.0 — 2022-08-04

## README

# react-native-accordion

Animated accordion component for React Native with React 17 and React Native 0.64.3 Support

## Example app

![image](example-app.gif)

## Installation

```bash
npm install --save @gapur/react-native-accordion
```

## Usage
```js
import Accordion from "@gapur/react-native-accordion";

<Accordion headerTitle="Title">
  <View>
    <Image source={imageUrl} />
    <Text>{description}</Text>
  </View>
</Accordion>
```

You can also show arrow button on the bottom and override accordion header content:
```js
<Accordion
  showButton
  style={styles.accordion}
  renderHeader={() => renderAccordionHeader()}>
  <View>
    <Image source={imageUrl} />
    <View style={styles.headerValue}>
      <Text style={styles.headerLabelText}>{title}</Text>
      <Text style={styles.headerValueText}>{description}</Text>
    </View>
  </View>
</Accordion>
```

## Properties

| Prop                      | Description                                                                                                                                                                                                                                                                                                             | Default        |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
| **`headerStyle`**         | Optional styling for the header title container                                                                                                                                                                                                                                                                         | `{}`           |
| **`headerTitle`**         | Header title text                                                                                                                                                                                                                                                                                                       |                |
| **`headerTitleStyle`**    | Header title text style                                                                                                                                                                                                                                                                                                 |                |
| **`showButton`**          | Show accordion bottom button                                                                                                                                                                                                                                                                                            | `false`        |
| **`buttonStyle`**         | Accordion bottom button style                                                                                                                                                                                                                                                                                           | `{}`           |
| **`renderHeader`**        | Render own accordion header                                                                                                                                                                                                                                                                                             | `() => {}`     |
| **`style`**               | Optional styling for the container                                                                                                                                                                                                                                                                                      |                |
| **`renderButtonContent`** | Render own accordion bottom button                                                                                                                                                                                                                                                                                      | `() => {}`     |

## Running example app

```sh
git clone https://github.com/Gapur/react-native-accordion.git
cd react-native-accordion/example
yarn
npm run ios
```

## License

MIT

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