I've been searching for a search bar component for ios and android so i can use in my app. So far I have found none, that's why I want to make one. How can I show a view when I click a button? So when they click the search icon, the search bar appears. Or any way to do a search bar? Thank you!
There are many tutorials available on Internet`
Some of them
var SearchBar = require('react-native-search-bar');
and
<SearchBar
ref='searchBar'
placeholder='Search'
onChangeText={...}
onSearchButtonPress={...}
onCancelButtonPress={...}
/>
Some useful links
https://github.com/umhan35/react-native-search-bar
https://www.npmjs.com/package/react-native-search


react-native-elements 1.0.0-beta5 has a component for both iOS and Android searchbars. The current version SearchBar works with Android too but is without the Android style.
npm install --save [email protected]
<SearchBar
showLoading
platform="android"
placeholder='Search' />
Then it looks like this:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With