-
Notifications
You must be signed in to change notification settings - Fork 927
Add Firestore ReactNative build #3198
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
Conversation
This builds work out of the box in RN since it relies on js-base64 for base64 encoding.
export function registerFirestore(instance: FirebaseNamespace): void { | ||
configureForFirebase( | ||
instance, | ||
(app, auth) => new Firestore(app, auth, new IndexedDbComponentProvider()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RN doesn't support indexeddb, so we should use MemoryComponentProvider
here. Probably just remove this file, and point react-native
in the root package.json to the memory build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some users that are using our IndexedDb Shim support. I am not sure if we should break them in this PR. FWIW, our main Node build also ships with IndexedDb support.
This builds work out of the box in RN since it relies on js-base64 for base64 encoding.
Fixes #2667