tylim88/Firelord

Why the 3 separate codebases for web/admin/react native?

Closed this issue · 1 comments

Firstly, excellent work on this project. I'm CTO of a startup about to use Firestore in our mobile app, and I think I am equally obsessed with type safety as yourself @tylim88 :) I would love to contribute to this project if we end up using it in production.

I'm a bit perplexed about the need for 3 entirely different codebases, because we need consistent type safety across admin/RN (optimistic updates are important and one of our drivers behind choosing Firestore, so I can't rely on only mutating documents in cloud functions).

Is it not possible to share the majority of the code across platforms? typesaurus by @kossnocorp has taken an "adapter" approach. Would it be possible to define a generic "store" interface, and provide a separate factories to construct a store from an App/Firestore instance from any of the Web/Admin/RN SDKs?