You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System version: IOS (React Native), Android (React Native)
Firebase SDK version: 4.12.0
Firebase Product: Firestore
Unable to add or retrieve documents via Firestore, there is no errors, no exception, but nothing is happened
Steps to reproduce:
Add npm install [email protected] --save to the react native project
Add the code below to the project
Nothing is happening (collections and documents were not created)
Relevant Code:
import * as firebase from 'firebase'
import firestore from 'firebase/firestore'
var config = {
apiKey: "xxxxxxxxxxxxxxxxxx",
authDomain: "xxxxxxxxxxxxxxxxxx",
databaseURL: "xxxxxxxxxxxxxxxxxx",
projectId: "xxxxxxxxxxxxxxxxxx",
storageBucket: "xxxxxxxxxxxxxxxxxx",
messagingSenderId: "xxxxxxxxxxxxxxxxxx"
};
firebase.initializeApp(config);
var db = firebase.firestore();
var docRef = db.collection('users').doc('alovelace');
var setAda = docRef.set({
first: 'Ada',
last: 'Lovelace',
born: 1815
})
The text was updated successfully, but these errors were encountered:
You may be running into #283. There was a fix made in react native but I don't think it's been released yet. You can try the workaround in #283 (comment) and see if that solves the issue for you.
@mikelehen I have already tried solutions from #283, it didn't help me, besides of that, I'm not using expo, I'm using pure react native. and in my case Firestore don't work both in Android and IOS.
Is this tracking a different issue than #638 ? If not, can we close this issue? I'm inclined to use #638 as the primary tracking issue since it has your logs.
[REQUIRED] Describe your environment
Unable to add or retrieve documents via Firestore, there is no errors, no exception, but nothing is happened
Steps to reproduce:
Add
npm install [email protected] --save
to the react native projectAdd the code below to the project
Nothing is happening (collections and documents were not created)
Relevant Code:
The text was updated successfully, but these errors were encountered: