Hi, I wanted to try the react-native example for Android but it's not working at the moment.
First, WatermelonDB version is at 0.10.1 - which means that is still affected by #276
But even correcting this it seems that the metro server can't communicate with my device. I guess maybe updating some libraries / dependencies can fix this? I see a PR #513 but no activity there. I'm not sure what else I might be missing. I can probably help testing the example if the PR is finalized / accepted.
@sofiageo try to use this. It is working just on iOS. You can enable for Android if you want. https://github.com/AugustoAleGon/watermelonDBSample
@AugustoAleGon
Thanks, it took some time but I managed to get it working.
@sofiageo I am glad that helps! If you manage to work on Android just send a pr for it. 馃挭
@sofiageo I am glad that helps! If you manage to work on Android just send a pr for it. muscle
I'm having some ISP issues at the moment at home so I can send a PR after they are resolved. However, I also had to upgrade react to 16.9.0 + react native to 0.61.5 while I was trying to get it working. If it's OK with you I will do it as soon as possible (when I have proper access to internet again). I will open an issue on your repository so we don't spam here :)
Of course I'm still interested in setting up the official watermelonDB example :)
The example RN is way out of date. @sofiageo said he's working on updating it, but that was a while ago. If I had the time, I would. I'm too busy researching offline storage solutions.
Hi @mjstelly - Check the demo from @AugustoAleGon - I had sent the PR in January and I guess it should still work. I was never sure about the status of the code here so I never tried to fix anything. However I've managed to use WatermelonDB for a project and all went well at the end (apart from fast deletes not working yet). I would recommend it for anyone lurking here :)
@sofiageo hey, would you be interested in updating the built-in react native example to the latest versions? that would be very helpful to a lot of people using 馃崏, and a great way to contribute back to the project :)
I have an RN project already started. I鈥檒l post it to my public github. You can fork it if you wish. @radex @sofiageo
Hey @radex - I think I might be able to help with that. I'm still not sure what the status of #513 is, should I ignore the PR or try to work with what is already in there? Is there anything else I need to be aware of or I just go for a best-effort approach?
@sofiageo you should ignore that PR, it's a little outdated. Your best effort will be very much appreciated :) -- if it compiles and runs with recent versions of WatermelonDB and react-native, that'd be very helpful
Sorry about the delay, I thought I could tackle it last weekend but stuff got in the way, I will make sure to focus on it the following days.
Are there plans to merge this in? I suppose I could depend on the fork if I need to, which wouldn't be ideal.
Yes. @sofiageo Did great work with the update, but I haven't had the time to check it out and merge it in. But I will, and I appreciate the work.
(Closing this issue now, as there is a PR that fixes the problems)