Skip to content

corasan/rn-search-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rn-search-bar npm version

React Native search bar for Android and iOS

screenshot

Installation

npm i --save rn-searchbar

Usage

import SearchBar from 'rn-searchbar';

export default class Example extends Component {
  render() {
    return (
      <View style={styles.container}>
        <SearchBar searchButton={<Text>Search</Text>} onPress={(text) => console.log(text)}/>
      </View>
    );
  }
}

Props

Props Type Description
searchButton node Use whatever icon you want or text you want to use
onPress(inputText) function What you want to do when you press the search button

Releases

No releases published

Packages

No packages published