Questions tagged «react-native-firebase»

2
无法从React-Native-Firebase(v6)Firestore获取数据:undefined不是函数(在'... this._firestore.native.collectionGet ...附近)
我已经在这个问题上停留了很长时间。我刚刚开始使用react-native-firebase在我的react-native应用程序中实现Firestore。我只是关注文档[ https://invertase.io/oss/react-native-firebase/v6/firestore/quick-start#reading-data],但它对我不起作用。 这是在Android中。尚未在iOS中进行测试。 我不断收到此错误: [TypeError: undefined is not a function (near '...this._firestore.native.collectionGet...')] 以下是相关代码: import React, {Component} from 'react'; import { firebase } from '@react-native-firebase/firestore'; export default App extends Component{ constructor(props) { super(props); this.getData= this.getData.bind(this) this.getData() this.state = {}; } async getData() { try { const querySnapshot = await firebase.firestore() .collection('Gyms') …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.