npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-search-header-box

v0.1.2

Published

Hii, search header bar

Downloads

50

Readme

Library Usage

Installation

Add the dependency:

npm i react-native-search-header-box

Peer Dependencies

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

Usage

Import

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

Fundamental Usage

<SearchHeaderBox />

Advanced Usage

<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 [email protected]

License

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