1.1.1 • Published 8 months ago

react-native-bottom-search-bar v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 months ago

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

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

PropertyTypeDefaultDescription
onChangeTextfunctiondefaultget the text input's change function
disableTextInputbooleanfalsedisable the text input and instead you can use it as a button
backgroundColorcolorwhitechange the main component's background color
buttonTextstringHotspotuse this to change the button's text
onButtonPressfunctionfunctionuse this to set your onPress function to the button
buttonIconComponentcomponentIconset your own icon component for the button
disableButtonbooleanfalsedisable the button itself (on the right one)
disableButtonIconbooleanfalsedisable the button's icon component
disableHomeButtonbooleanfalsedisable the home button's itself
onHomePressfunctionfunctionset your own onPress function for home button
homeButtonIconComponentcomponentIconset your own icon component instead of the default one

SearchBox Props

PropertyTypeDefaultDescription
onChangeTextfunctionfunctionset your own logic for changing text
searchBoxTextstringWhat are you looking for?set the search box's text
searchBoxOnPressfunctionfunctionset your own logic when tapping the search box itself
searchBoxWidthnumber95%change the search box's width
searchBoxBorderRadiusnumber8change the search box's border radius
searchBoxBackgroundColorcolor#f5f5f5change the search box's background color
iconComponentcomponentIconset your own icon component instead of Icon
disableTextInputbooleanfalsedisable 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, kurayogun@gmail.com

License

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

1.1.1

8 months ago

1.1.0

10 months ago

1.0.0

2 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.2

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.1

5 years ago