简体   繁体   English

如何从 firestore 获取数据并在 textinput 的下拉列表中列出,以便在 react native 中选择

[英]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.

相关问题 React Native 如何从 Firebase Firestore 获取数组数据? - React Native how to fetch Array data from Firebase Firestore? 无法从 Firestore React-Native 获取所有数据 - Can't fetch all data from Firestore React-Native 我从 firestore 获取数据,但它没有出现在我的反应本机应用程序屏幕中 - I fetch data from firestore but it's not appearing in my react native app screen 如何在 React Native 应用程序中从 Firebase 实时数据库中获取数据 - How to Fetch Data from Firebase Realtime Database in React Native App 如何从 flutter 中的云 firestore 获取数据? - How to fetch data from cloud firestore in flutter? 如何将数据从我的数据库 (Firebase Firestore) 发送到我的 React Native 应用程序? - How do I send data from my database (Firebase Firestore) to my React Native app? 无法从 firestore 数据库读取数据以对本机项目做出反应 - Cannot read data from firestore database to react native project 使用 React Native 在平面列表中 Firestore 数据 - Firestore data in a flatlist with react native 如何在 React 本机应用程序中过滤 Firebase Firestore Array 数据? - How to filter Firebase Firestore Array data in React native app? 搜索react native cloud firestore后如何恢复数据 - How to restore the data after search react native cloud firestore
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM