คำถามติดแท็ก react-native-firebase

2
ไม่สามารถรับข้อมูลจาก React-Native-Firebase (v6) Firestore: undefined ไม่ใช่ฟังก์ชั่น (ใกล้ '… this._firestore.native.collectionGet …')
ฉันติดปัญหานี้มานานแล้ว ฉันเพิ่งเริ่มใช้ 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() { …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.