npm.io
1.0.3 • Published 9 years ago

rn-searchbar

Licence
MIT
Version
1.0.3
Deps
0
Vulns
0
Weekly
0
Stars
1
DeprecatedThis package is deprecated

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

Keywords