1.0.3 • Published 7 years ago

rn-searchbar v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

rn-search-bar

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

PropsTypeDescription
searchButtonnodeUse whatever icon you want or text you want to use
onPress(inputText)functionWhat you want to do when you press the search button