reactfire icon indicating copy to clipboard operation
reactfire copied to clipboard

Please clarify in README about the relationship of this project with React Native Firebase

Open ngocdaothanh opened this issue 4 years ago • 3 comments

React Native Firebase: https://rnfirebase.io/

I have some questions that I think they should be mentioned in README:

  • On smartphones with React Native, I should use React Native Firebase or ReactFire?
  • If ReactFire is also usable on smartphones, how does it perform differently compared to React Native Firebase?
  • The suspense hooks of ReactFire are very cool. React Native Firebase doesn't have hooks. Can I/should I/how do I use ReactFire together with React Native Firebase so that I can use the hooks?

ngocdaothanh avatar Feb 08 '21 00:02 ngocdaothanh

FWIW, i was able to install using:

expo install firebase
yarn add reactfire

however I keep getting an error like: TypeError: undefined is not an object (evaluating 'this._warmupSubscription')

I think is due to the Suspense thing. Not sure yet how to fix it

arthurnn avatar Feb 12 '21 23:02 arthurnn

I think is due to the Suspense thing. Not sure yet how to fix it

In that case, you can follow this instruction to enable suspense (and you need to put your components inside <Suspense> component): https://github.com/FirebaseExtended/reactfire/issues/332

ngocdaothanh avatar Feb 13 '21 01:02 ngocdaothanh

Hello team can you provide some responses to the original question, we have the same doubts , thx

jamesjara avatar Oct 03 '21 20:10 jamesjara