# react-native-custom-headers

> The custom headers for react-native using react-navigation

Latest version **1.0.1** (published 2020-01-13) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install react-native-custom-headers
pnpm add react-native-custom-headers
yarn add react-native-custom-headers
bun add react-native-custom-headers
```

## 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.1 |
| Published | 2020-01-13 |
| First published | 2020-01-04 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 106.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | HarshitMadhav |
| Maintainers | harshitmadhav |
| Keywords | react-native-custom-headers, custom-headers, headers |

## Links

- npm: https://www.npmjs.com/package/react-native-custom-headers
- Repository: https://github.com/HarshitMadhav/react-native-custom-headers
- Homepage: https://github.com/HarshitMadhav/react-native-custom-headers#readme
- Issues: https://github.com/HarshitMadhav/react-native-custom-headers/issues
- npm.io page: https://npm.io/package/react-native-custom-headers

## Recent versions

- 1.0.1 (latest) — 2020-01-13
- 1.0.0 — 2020-01-04

## README

<<<<<<< HEAD
# react-native-custom-headers

Custom headers for react-native using react-navigation for managing navigations in react-native apps.
=======
# REACT-NATIVE-CUSTOM-HEADERS!
[![Twitter](https://img.shields.io/twitter/url?color=gg&label=react-native-custom-headers&style=plastic&url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Freact-native-custom-headers)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Freact-native-custom-headers)

react-native custom headers for creating custom headers for the app using the [react-navigation](https://github.com/react-navigation/react-navigation) package for managing navigations in their app.

# Installation

    npm install react-native-custom-headers --save

# PROPS
| Prop | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| `navigation`| ---- | `navigation` | **REQUIRED** Pass the navigation prop|
| `headerName` | `String` | `Empty` | Enable Header Title |
| `showHeaderImage`| `Boolean` | ------- | Enable Header Image |
| `headerImagePath` | `path` | ------- | **Required** (if showHeaderImage is taken true) |
| `headerColor` | `String` | ------- | Header Bar Color |
| `headerTextStyle` | `Stylesheet` | ------- | Custom stylesheet to Header Title |

# Screenshots
```
![Alt text]
```
```
![Alt text]
```

# HOW TO USE?
Import it using:

`import Header from 'react-native-custom-headers;`

and then,

    <Header navigation={this.props.navigation}
    showHeaderImage={false}
    backImagePath ={require('./resources/back.png')}
    headerImagePath = {require('./resources/logo.png')}
    headerName={'SUB CATEGORY'}/>
`

You can also use this component with react-navigation custom header call like this,

```
navigationOptions: {
  header: props => <Header {...props} />,
},
```
**OR**,
```
Reclaim: {
    screen: GiftReclaimSection,
    navigationOptions: {
      tabBarLabel: 'Reclaim',
      header: <Header/>,
    }
  }
```
**OR** like this also,
```
static navigationOptions = {
    header: <Header/>,
  };
 
```
>>>>>>> second commit

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