-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
breaking bug with Firebase #7864
Comments
If I remove the |
This is the I've only added the firebase bit and the import.
|
Can you debug what's going on and identify the root cause? |
I'm new to RN... So I debugged in Chrome and got this. After searching for
So it seems it's a known Firebase bug... Closing this. |
So this problem makes Firebase unusable with React Native. The "workaround" is losing FB authentication and importing this directly:
and then simply:
Losing auth, analytics, etc, basically makes Firebase unusable for React Native projects. I've complained in the Firebase Google Group and I invite anyone wanting to use Firebase on RN to do the same. |
Ok I understand your workaround now. I do need the auth module however, only for the api and now the Oauth UI flows. I tried to un-minify the fb js code and look for a solution but It didn't seem obvious to me at first glance. I'm pretty determined to find a solution (and at least keep politely nudging google to restore compatibility). Danijel |
Yes, without auth it makes Firebase unusable for anything serious. You also lose (at least) analytics... |
@dcworldwide your options are as follow...
I'd say 2 is the best one... someone started a project but it's quite experimental and only for iOS. Also it seems abandoned. |
I'm not certain if this is a Firebase bug or a React Native one...
I'm building for Android. I haven't tried in iOS.
The error says:
I have started a fresh project with latest versions:
I have tried putting
node_modules/firebase/
in the.babelignore
as suggested here. I'm not having the same error... but I tried just in case.I'm only initialising firebase in the standard manner, otherwise the project is fresh created with
react-native init MyProject
:Here is a screenshot of the device:
The text was updated successfully, but these errors were encountered: