Skip to content
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

Expo offline support with op-sqlite and react-native-firebase #2926

Open
andreaslydemann opened this issue Feb 3, 2025 · 0 comments
Open

Comments

@andreaslydemann
Copy link
Contributor

andreaslydemann commented Feb 3, 2025

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 op-sqlite that is used for offline mode:
https://op-engineering.github.io/op-sqlite/docs/installation#use_frameworks

You would get the following EAS build error from adding op-sqlite while having useFrameworks: 'static' enabled:

Image Image

That basically makes offline mode impossible together with react-native-firebase.

This issue is pretty much a duplicate of the same issue I reported that also existed with the previous sqlite library "react-native-quick-sqlite". I'm a bit surprised that we're dealing with the same issue again after migrating to a new sqlite library:
#2123

To Reproduce
Steps to reproduce the behavior:

  1. Install react-native-firebase and set useFrameworks: 'static' in the app.json file while having op-sqlite installed for offline mode.
  2. Run EAS build.
  3. 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.

@andreaslydemann andreaslydemann changed the title Expo offline support and react-native-firebase Expo offline support with op-sqlite and react-native-firebase Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant