Native UISearchBar component for React Native.
$ yarn add react-native-ios-search-bar
$ react-native link react-native-ios-search-bar
- 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
)<
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}
/>
)
}
}
MIT
รlvaro Medina Ballester <amedina at apsl.net>
Built with ๐ by APSL.