react-query-firebase icon indicating copy to clipboard operation
react-query-firebase copied to clipboard

react-native-firebase support

Open izakfilmalter opened this issue 3 years ago • 6 comments

Love the idea of this library. I know that it's depending on firebase js v9, is there a way we can shim in support for react-native-firebase?

izakfilmalter avatar Jan 17 '22 16:01 izakfilmalter

You will run into all kinds of problems if you try to use this library with React Native. I would avoid.

Justinohallo avatar Feb 11 '22 03:02 Justinohallo

Not yet, we do have plans to get RNFB to support React Native web via the JS-SDK, however that is a massive job :D

Ehesp avatar Feb 13 '22 13:02 Ehesp

@Justinohallo @Ehesp I understand this library is not suited for React Native, but from your experience is there any reason not to use similar React Query + Firestore principles in the React Native environment?

AronBe avatar Jun 01 '22 12:06 AronBe

I was thinking of trying out this library for a production app. I came upon this issue. Are there any particular reasons why this library is not suited for React Native? Just curious.

amandeepmittal avatar Jun 13 '22 15:06 amandeepmittal

If you want to use the Firebase JS SDK with this library, I think it should work - although untested. If you want to use React Native Firebase, then that's not supported.

Ehesp avatar Jun 13 '22 19:06 Ehesp

I am successfully using in production this library with

  • React Native
  • Expo

I am just using the real time database https://react-query-firebase.invertase.dev/database

flexbox avatar Oct 20 '22 14:10 flexbox