Opa, blz?
msg de erro: @firebase/firestore: Firestore (9.17.1): Connection WebChannel transport errored:
Já fiz algumas alterações sugeridas no stackoverflow, mas sem sucesso. Podem me ajudar?
meu arquivo firebase.js:
import {initializeApp} from 'firebase/app'; import {getFirestore} from 'firebase/firestore';
import{API_KEY, AUTH_DOMAIN, PROJECT_ID, STORAGE_BUCKET, MESSAGING_SENDER_ID, APP_ID} from '@env';
const firebaseConfig = {
apiKey: API_KEY,
authDomain: AUTH_DOMAIN,
projectId: PROJECT_ID,
storageBucket: STORAGE_BUCKET,
messagingSenderId: MESSAGING_SENDER_ID,
appId: APP_ID
};
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
export {db};