Expo offline support and react-native-firebase
andreaslydemann opened this issue · 21 comments
Describe the bug
When you install react-native-firebase in an expo app, it is stated in the docs that you need to set useFrameworks: 'static' with expo-build-properties for react-native-firebase to work. Unfortunately that setting doesn't work with the library react-native-quick-sqlite that is used for offline mode.
You would get the following EAS build error from adding react-native-quick-sqlite while having useFrameworks: 'static' enabled:
That basically makes offline mode impossible together with push notifications using react-native-firebase.
To Reproduce
Steps to reproduce the behavior:
- Install react-native-firebase and set useFrameworks: 'static' in the app.json file while having react-native-quick-sqlite installed for offline mode.
- Run EAS build.
- See EAS build error.
Expected behavior
I expect the app to work with react-native-firebase while having offline support enabled. But that is currently not possible as far as I can see. If Stream used another sqlite library with support for useFrameworks: 'static', that would be a solution.
This issue is known to us, and we're aware of the unfortunate limitations.
We're triaging possible solutions
I'm just here to tell you that I have the same problem :-)
I'm pretty sure you evaluated already some possibilities and I'm a total newbie on everything on the native side, so probably this proposal is totally useless, but maybe its possible to "simply" exchange react-native-quick-sqlite with https://docs.expo.dev/versions/latest/sdk/sqlite/
Also, have the same issue. Hope it's fixed soon :)