I found a few problems with this issue:
@papay0 did you find any solution this problem? the realtime database is working fine but Firestore has some serious issue with the expo. need help
I can confirm, I faced the same issue and downgrading to 7.9.0 solved the issue.
@Edweis but downgrading to 7.9.0 doesnt solve my error. the warning is still showing in the console as atob is not found.
Hi y'all, thanks for the inputs. I've tried replicating this issue so I could escalate this to our Firestore folks, but can't seem to replicate it or I might be missing something here. Here's my repro running in the browser with the help of this guide.
If that's not the case, let me know so I can recreate a working repro and be able to reach out to right person.
Sorry to hear this! Since both 7.9.0 and 7.9.1 seem to be broken in different ways, for now I recommend using 7.8.2 with React Native.
I have tried this with many lower versions still not working the same error is showing.
I tried tinkering with @rommelpe's repro, and atob() seems to be defined, so I'm not getting the error. I'm currently investigating the issue, but in the meantime, does following the most-upvoted answer on this stackoverflow post (importing base-64 and adding atob and btoa globals) work as a temporary fix? A recent change in 7.9 started relying on atob, which does not seem to be defined in the global scope in react-native.
Also, if someone could provide a minimal repro with the error, that would be greatly appreciated!
Yes. Importing base64 globally in the app.js fixed my problem. Thank you. But many of you suggested downgrading to lower version working. But I had even downgraded to version 6.5.0. It showed the same results only. Anyway, global import seems to be the better solution as of now
Please do you have an example
Check out this question. I have posted my answer.
This appears to still be an issue again in 7.14.3, only the workaround posted on StackOverflow no longer works. Is there another way to get around this?
This appears to still be an issue again in 7.14.3, only the workaround posted on StackOverflow no longer works. Is there another way to get around this?
I'm running 7.14.5 on React 16.13.1 and it's OK :)
This appears to still be an issue again in 7.14.3, only the workaround posted on StackOverflow no longer works. Is there another way to get around this?
I'm running 7.14.5 on React 16.13.1 and it's OK :)
Ok - I'm a total noob at react native so I must be doing something wrong. Can you explain in a bit of detail how you solved this, please?
This appears to still be an issue again in 7.14.3, only the workaround posted on StackOverflow no longer works. Is there another way to get around this?
I'm running 7.14.5 on React 16.13.1 and it's OK :)
Ok - I'm a total noob at react native so I must be doing something wrong. Can you explain in a bit of detail how you solved this, please?
Ignore me, sorry! I didn't read the issue title properly - I am using React web not native!
The workaround posted on StackOverflow worked for me, but it atob and btoa has to be registered before the Firebase SDK is loaded.
Does anyone know if this will be remedied soon or are react-native users planning to stay on version 7.9.0 ?
In review now: https://github.com/firebase/firebase-js-sdk/pull/3198
When i go the atob and btoa route, I get this error after about 1 min 7 secs:

does anyone know how to fix this? Also I saw that there was a pretty similar issue here: https://github.com/expo/expo/issues/8130 , so these issues might be related!
Upgraded to 7.15.2,
Getting error when attempting to talk to firestore:
firebase TypeError: util.base64.tI is not a function
This only happens when running on iOS and Android, web works fine.
FYI: The current SDK release is mostly broken for RN. I suggest using 71,5.0 with the atob/bota Polyfill (7.15.2 with Polyfill should also work).
I upgraded to version 7.15.3 from 7.15.1 but still I cannot write data on cloud firestore in react native although it is written in the release notes that the problem is fixed. Have anyone tried the latest version?
yes, it is correct, it throws an error when you try to write
yes, it is correct, it throws an error when you try to write
should I downgrade to other version which is working?
yes, it goes back to 7.9.0.
If you use Expo use this, in your package.json: "firebase": "7.9.0"
yes, it goes back to 7.9.0.
If you use Expo use this, in your package.json: "firebase": "7.9.0"
No I am using react native cli..
in that case I'm not sure which one to go back to
@JoynerPerez1987
7.14.1 works ok for me
they just released a new version(7.15.4) and apparently there are still problems.https://firebase.google.com/support/release-notes/js
Re-opening until https://github.com/firebase/firebase-js-sdk/pull/3251 lands.
Most helpful comment
I can confirm, I faced the same issue and downgrading to 7.9.0 solved the issue.