Giter Club home page Giter Club logo

react-native-bottom-search-bar's Introduction

React Native Bottom Search Bar

Battle Tested โœ…

Elegant & Cool also fully customizable bottom search bar for React Native

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Bottom Search Bar

React Native Bottom Search Bar React Native Bottom Search Bar React Native Bottom Search Bar

Installation

Add the dependency:

Pure React Native:

npm i react-native-bottom-search-bar

Peer Dependencies

IMPORTANT! You need install them.
"@freakycoder/react-native-helpers": ">= 1.0.2",
"react-native-dynamic-vector-icons": ">= x.x.x"

Basic Usage

<BottomSearchBar />

Advanced Usage

<BottomSearchBar
    height={125}
    iPhoneXHeigh={150}
    disableHomeButton
    buttonBackgroundColor="#050191"
    buttonOnPress={() => {}}
    onChangeText={(text)=> {console.log(text)}}
    homeButtonIconComponent={
        <MyIcon>
            Custom Component instead of default Home Button Icon
        </MyIcon>
    }
/>

Configuration - Props

Main Props

Property Type Default Description
onChangeText function default get the text input's change function
disableTextInput boolean false disable the text input and instead you can use it as a button
backgroundColor color white change the main component's background color
buttonText string Hotspot use this to change the button's text
onButtonPress function function use this to set your onPress function to the button
buttonIconComponent component Icon set your own icon component for the button
disableButton boolean false disable the button itself (on the right one)
disableButtonIcon boolean false disable the button's icon component
disableHomeButton boolean false disable the home button's itself
onHomePress function function set your own onPress function for home button
homeButtonIconComponent component Icon set your own icon component instead of the default one

SearchBox Props

Property Type Default Description
onChangeText function function set your own logic for changing text
searchBoxText string What are you looking for? set the search box's text
searchBoxOnPress function function set your own logic when tapping the search box itself
searchBoxWidth number 95% change the search box's width
searchBoxBorderRadius number 8 change the search box's border radius
searchBoxBackgroundColor color #f5f5f5 change the search box's background color
iconComponent component Icon set your own icon component instead of Icon
disableTextInput boolean false disable or enable the text input itself

Credits

I get the inspiration from Joo Find App. This is the exact bottom search bar from their concept design. Thank you for this inspiration :) Here is the uplabs link:JooFind App Concept)
Thank you for this awesome concept work FireArt Studio )

Author

FreakyCoder, [email protected]

License

React Native Bottom Search Bar Library is available under the MIT license. See the LICENSE file for more info.

react-native-bottom-search-bar's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar wrathchaos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.