我正在尝试从我的react原生应用程序的firestore数据库中获取登录的用户信息。 我刚接触react native,因此我不知道用firestore做这些事情的正确语法或方法。我已经阅读了很多文档,但它们并不能提供每个情况和实例的信息。this code gives me and error,
snapshot is not a function, snapshot is an instance of a promise 如何获取<
我正在学习react-原生的,并试图从API中获取数据,并将其显示在平面列表中,但我不知道如何在functional中这样做,因为我已经在internet上学习过许多教程,但它们都使用基于类的组件。下面是我的代码:import {View,Text,StyleSheet} from 'react-nativeq=simpso