README
react-native-ios-search-bar
Native UISearchBar component for React Native.
Getting started
$ yarn add react-native-ios-search-bar
Mostly automatic installation
$ react-native link react-native-ios-search-bar
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
โAdd Files to [your project's name]
- Go to
node_modules
โreact-native-ios-search-bar
and addRNIKReactNativeIosSearchBar.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNIKReactNativeIosSearchBar.a
to your project'sBuild Phases
โLink Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import IOSSearchBarView from 'react-native-ios-search-bar';
class Search extends React.Component {
_onTextDidChange = (text: string) => {
console.log(text)
}
render() {
return (
<IOSSearchBarView
onTextDidChange={this._onTextDidChange}
/>
)
}
}
License
MIT
Author
รlvaro Medina Ballester <amedina at apsl.net>
Built with ๐ by APSL.