タグ付けされた質問 「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') …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.