Connect Firebase Database to React Native Search bar? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Connect Firebase Database to React Native Search bar?

I want to fetch data from firebase database and display them on my app according to the search keywords...how can i do it?

16th Apr 2020, 9:30 PM
Gigishan
Gigishan - avatar
1 Answer
+ 5
For starters you can use this autocomplete component https://www.npmjs.com/package/react-native-autocomplete-input You still need to get the data from the database tho, and firebase may not be best suited for that. This stackoverflow answer explains it https://stackoverflow.com/a/47907691 One other thing i found is this article that may be relevant: https://stories.mlh.io/supercharge-your-search-with-algolia-autocomplete-and-firebase-1641e04b8856 The author uses vanillaJS and HTML but it can still be modified to use in react native. edit: additional resources https://medium.com/@nikhilkachare01/how-to-implement-autocomplete-and-advance-database-queries-in-firebase-abd194ba1600 https://github.com/brettlangdon/firestore-autocomplete
18th Apr 2020, 7:13 PM
Burey
Burey - avatar