# react-native-elegant-header

> Fully customizable, easy to use Elegant Header component for React Native

Latest version **0.1.0** (published 2021-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-elegant-header
pnpm add react-native-elegant-header
yarn add react-native-elegant-header
bun add react-native-elegant-header
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-09-20 |
| First published | 2021-09-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 46.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | FreakyCoder |
| Maintainers | freakycoder |
| Keywords | header, header-view, elegant-header, ui, front-end, FreakyCoder, freakycoder, kuray, Kuray, react, react-native, javascript, ui-lib, rn |

## Links

- npm: https://www.npmjs.com/package/react-native-elegant-header
- Repository: https://github.com/WrathChaos/react-native-elegant-header
- Homepage: https://www.freakycoder.com
- Issues: https://github.com/WrathChaos/react-native-elegant-header/issues
- npm.io page: https://npm.io/package/react-native-elegant-header

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

- 0.1.0 (latest) — 2021-09-20

## README

<img alt="React Native Elegant Header" src="assets/logo.png" width="1050"/>

[![Battle Tested ✅](https://img.shields.io/badge/-Battle--Tested%20%E2%9C%85-03666e?style=for-the-badge)](https://github.com/WrathChaos/react-native-elegant-header)

[![React Native Elegant Header](https://img.shields.io/badge/-Fully%20customizable%2C%20easy%20to%20use%20Elegant%20Header%20component%20for%20React%20Native-orange?style=for-the-badge)](https://github.com/WrathChaos/react-native-elegant-header)

[![npm version](https://img.shields.io/npm/v/react-native-elegant-header.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-elegant-header)
[![npm](https://img.shields.io/npm/dt/react-native-elegant-header.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-elegant-header)
![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier)

<table>
  <tr>
    <td align="center">
      <img alt="React Native Elegant Header"
        src="assets/Screenshots/react-native-elegant-header.png" />
    </td>
    <td align="center">
      <img alt="React Native Elegant Header"
        src="assets/Screenshots/react-native-elegant-header-with-back-button.png" />
    </td>
   </tr>
</table>

# Installation

Add the dependency:

```bash
npm i react-native-elegant-header
```

## Peer Dependencies

<h5><i>Zero Dependency</i></h5>

# Usage

## Import

```jsx
import ElegantHeader from "react-native-elegant-header";
```

## Fundamental Usage

```jsx
<ElegantHeader
  title="Welcome"
  description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tristique fermentum magna, porttitor vulputate arcu dapibus et."
/>
```

## Basic Usage with Back Button

```jsx
<ElegantHeader
  title="Welcome"
  description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tristique fermentum magna, porttitor vulputate arcu dapibus et."
  enableBackButton
  onPress={() => {}}
/>
```

## Example Project 😍

You can checkout the example project 🥰

Simply run

- `npm i`
- `react-native run-ios/android`

should work of the example project.

# Configuration - Props

## Fundamentals

| Property    |  Type  |  Default  | Description           |
| ----------- | :----: | :-------: | --------------------- |
| title       | string | undefined | change the title      |
| description | string | undefined | change the descrition |

## Customization (Optionals)

| Property                  |   Type    |  Default  | Description                                                             |
| ------------------------- | :-------: | :-------: | ----------------------------------------------------------------------- |
| enableBackButton          |  boolean  |   false   | let you enable the back button (must use it for button)                 |
| onPress                   | function  | undefined | set your own logic for the back button functionality when it is pressed |
| TextComponent             |   Text    |  default  | set your own component instead of default react-native Text component   |
| TouchableComponent        |   Image   |  default  | set your own component instead of default react-native Image component  |
| style                     | ViewStyle |  default  | set or override the style object for the main container                 |
| backButtonImageStyle      | ViewStyle |  default  | set or override the style object for the back button's image style      |
| titleTextStyle            | TextStyle |  default  | set or override the style object for the title's text style             |
| descriptionTextStyle      | TextStyle |  default  | set or override the style object for the description's text style       |
| descriptionContainerStyle | ViewStyle |  default  | set or override the style object for the description's container style  |

## Future Plans

- [x] ~~LICENSE~~
- [ ] Write an article about the lib on Medium

# Change Log

Change log will be here !

## Author

FreakyCoder, kurayogun@gmail.com

## License

React Native Elegant Header is available under the MIT license. See the LICENSE file for more info.

```

```

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