# react-native-search-header-box

> Hii, search header bar

Latest version **0.1.2** (published 2021-08-12) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2021-08-12 |
| First published | 2021-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 113.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Şevval Eygul |
| Maintainers | sevvaleygul |
| Keywords | SevvalEygul, sevvaleygul, sevval, Sevval, react, react-native, javascript, ui-lib, rn, header, search, search-bar, searchbar, header-search, header-search-bar, search-header, search-header-bar, searchHeader, SearchHeader, searchHeaderBox, search-header-box |

## Links

- npm: https://www.npmjs.com/package/react-native-search-header-box
- Repository: https://github.com/sevvaleygul0/react-native-typescript-library-starter
- Homepage: https://github.com/sevvaleygul0/react-native-typescript-library-starter#readme
- Issues: https://github.com/sevvaleygul0/react-native-search-header-box/issues
- npm.io page: https://npm.io/package/react-native-search-header-box

## Dependencies (1)

- [react-native-androw](https://npm.io/package/react-native-androw.md) 0.0.34

## 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.2 (latest) — 2021-08-12
- 0.1.1 — 2021-08-12
- 0.1.0 — 2021-08-11

## README

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

<p align="center">
  <img alt="React Native Typescript Library Starter"
        src="assets/Screenshots/example1.png" />
  <img alt="React Native Typescript Library Starter"
        src="assets/Screenshots/example2.gif" />
</p>

## Library Usage

# Installation

Add the dependency:

```bash
npm i react-native-search-header-box
```

## Peer Dependencies

<h5><i>IMPORTANT! You need install them</i></h5>

```js
"react-native-androw": ">= 0.0.34"
```

# Usage

## Import

```jsx
import SearchHeaderBox from "react-native-search-header-box";
```

## Fundamental Usage

```jsx
<SearchHeaderBox />
```

## Advanced Usage

```jsx
<SearchHeaderBox
  headerText="Main Service"
  placeholder="Search Here.."
  rightButtonContainerStyle={{
    backgroundColor: "#50C479",
    borderRadius: 12,
    paddingLeft: 12,
    paddingRight: 12,
    paddingTop: 3,
    paddingBottom: 3,
    justifyContent: "center",
    alignItems: "center",
    width: 55,
    height: 30,
  }}
  rightButtonComponent={
    <Text style={{ color: "#fff", fontWeight: "700" }}>New</Text>
  }
  inputActiveBorderColor="#6AB786"
  inputBorderColor="#C9F6D9"
/>
```

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

## Customization (Optionals)

| Property                   |   Type    |  Default  | Description                                                                            |
| -------------------------- | :-------: | :-------: | -------------------------------------------------------------------------------------- |
| mainContainerStyle         | ViewStyle |  default  | set or override the style object for the main container                                |
| leftIconComponent          | Component |   Image   | set the content of the left button                                                     |
| headerText                 |  string   |    ''     | change the header title text                                                           |
| rightButtonComponent       | Component |   Image   | set the content of the right button                                                    |
| rightButtonBackgroundColor |  string   | '#F4F4F4' | change the right button background color                                               |
| headerTitleTextStyle       | TextStyle |  default  | set or override the style object for the header text                                   |
| headerTitleTextComponent   | Component |   Text    | set the header title                                                                   |
| searchIconComponent        | Component |   Image   | set the search icon component                                                          |
| textInputStyle             | TextStle  |  default  | set or override the style object for search text input                                 |
| bottomContainerStyle       | ViewStyle |  default  | set the override the bottom container                                                  |
| leftButtonContainerStyle   | ViewStyle |  default  | set or override the left button style                                                  |
| leftButtonBackgroundColor  |  string   | "#F4F4F4" | change the left button background color                                                |
| isVisibleLeftButton        |  boolean  |   true    | change the left button visibility                                                      |
| isVisibleRightButton       |  boolean  |   true    | change the right button visibility                                                     |
| isVisibleSearch            |  boolean  |   true    | change the search bar visibility                                                       |
| rightButtonContainerStyle  | ViewStyle |  default  | set or override the right button style                                                 |
| searchBarShadowColor       |  string   | '#50C479' | change the search bar shadow color                                                     |
| searchBarShadowStyle       | ViewStyle |  default  | set or override the search bar shadow style                                            |
| inputActiveBorderColor     |  string   | '#50C479' | change the active input border color                                                   |
| inputBorderColor           |  string   | '#F4F4F4' | change the input border color                                                          |
| leftButtonShadowStyle      | ViewStyle |  default  | set or override the left button shadow style                                           |
| leftButtonShadowColor      |  string   | '#F4F4F4' | change the left button shadow color                                                    |
| rightButtonShadowColor     | ViewStyle |  default  | set or override the right button shadow style                                          |
| rightButtonShadowStyle     |  string   | '#F4F4F4' | change the right button shadow color                                                   |
| onLeftButtonPress          | Function  | undefined | set your own logic for the left button functionality when the left button is pressed   |
| onRightButtonPress         | Function  | undefined | set your own logic for the right button functionality when the right button is pressed |

You can use all of the TextInput props.

## Future Plans

- [x] ~~LICENSE~~

## Author

Şevval Eygül sevvalleygull@gmail.com

## License

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

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