Closed ScreamZ closed 3 years ago
Interested too
@ScreamZ Did you build RN 0.62 with WatermelonDB? It gives me errors
@kesha-antonov Getting errors too
Without Flipper it builds
It builds for me with Flipper. To make WatermelonDBs' database discoverable, I followed the docs and replaced:
databaseFiles.add("...path_to_your_db...")
With:
String watermelondb = context.getDatabasePath("watermelon.db").getPath().replace("/databases", "");
databaseFiles.add(new File(watermelondb));
@kesha-antonov @cesargdm There seems to be a conflict with Flipper on iOS, but you can use Flipper to debug your Android app using the method given by @ScreamZ.
Your ReactNativeFlipper.java
should look something like this - https://gist.github.com/kilbot/253e4bfb0b931f9dfc23a45f71564bf7 - where path_to_your_db
should match the dbName
passed into the SQLiteAdapter (watermelon
is the default).
Question for @zecakeh: is it possible to loop through multiple database files?
@kilbot Of course, just add as many databaseFiles.add(new File("path/to/database.db"));
as needed. The code in the docs includes both databases that are in the context and a custom one.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Your
ReactNativeFlipper.java
should look something like this - https://gist.github.com/kilbot/253e4bfb0b931f9dfc23a45f71564bf7 - wherepath_to_your_db
should match thedbName
passed into the SQLiteAdapter (watermelon
is the default).
This is something that should be added to documentation :)
For non expo users i recommend react-native-flipper-databases Works fine for me (tested on Android, rn 0.71.1 and watermelon 0.27)
@LukasMod database is not showing up sometimes using react-native-flipper-databases
Yes. Finally i dropped it for default flipper datebase plugin
Hey, I would like to add Flipper support and I followed this tutorial:
https://fbflipper.com/docs/setup/databases-plugin.html
But I need the database path, could you help me? Thanks