Closed jon-dearaujo closed 6 years ago
Hey guys! I've managed to fix it by fresh installing all my dependencies, including WatermelonDB and WithObservables, uninstalling and running again my app on the device.
Closing it here since it does not seem to be a bug or a problem with WatermelonDB.
Hey @jon-dearaujo can you explain how are you using watermelonDB along side redux?
I have a react-native app that manages the data with redux and I'm looking for paths to update the data store layer but without affecting much how the rest of the components work with react-redux, etc.. any pointers?
Sorry @enahum, we are not using redux and WatermelonDB together. I know it might sound a bit weird having both on the project and not taking advantage, but it seems that we don't need it right now. Redux came first as a dependency for redux-form and WatermelonDB came later as an attempt (successful, so far) to add offline features to our app. We probably could have tried some sort of persisted Redux, but we opted for a full database instead.
I am working on the implementation of a local database for my app and WatermelonDB seems to be a good option, and I was waiting the release of 0.8.0, with the DatabaseProvider/withDatabase to try it.
Yesterday, after the release I started the integration and I am getting this error right when the application launches using
react-native run-android
.I'll drop some code here to try to contextualize. I want to know if I am doing something wrong in the setup for Watermelon.
package.json
index.js
schema.js
Notification.js
AlertScreenContainer.js
Does anyone have an idea about what could be causing this issue? I know that there are couple of libraries and components being used along with WatermelonDB but they were all working before it.
Thanks