[英]How to fetch the data from firestore and list out it in dropdown in textinput for picking in react native
how can I implement dropdown suggestions... from the firestore database for any field or any collection in TEXTINPUT and listing out for picking it...我怎样才能从firestore数据库中为TEXTINPUT中的任何字段或任何集合实施下拉建议,并列出以供选择...
The approach here would be to fetch data from Firestore and map it to a List.这里的方法是从 Firestore 和 map 获取数据到一个列表。 There are many ways to fetch data from Firestore, check Retrieving Data List .
从 Firestore 获取数据的方法有很多,请查看Retrieving Data List 。 Once you've done that, the data can be displayed in the form dropdown list using various methods.
完成后,可以使用各种方法将数据显示在表单下拉列表中。
Here are a few examples of similar implementations that you are trying to implement.以下是您尝试实现的一些类似实现的示例。
[2] Load values for a dropdown menu from firebase [2] 从 firebase 加载下拉菜单的值
[3] Populate react select options array with key value pairs from firebase collection [3] 使用 firebase 集合中的键值对填充反应 select 选项数组
[4] How to display data from a firebase firestore in React Native [4] 如何在 React Native 中显示来自 firebase 火库的数据
[5] Get List of keys from Firbase database and load to dropdown list in reactjs [5] 从 Firbase 数据库中获取键列表并加载到 reactjs 中的下拉列表
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.