Databases
- How can I have a database??
- Is realm supported??
- Is sqlite suppoted??
This plugin provides a WebSQL-compatible API to store data in a react native app, by using a SQLite database on the native side. Can you check it we write a simple bridge here : https://github.com/craftzdog/react-native-sqlite-2
Is there any other alternative way?
Yes, there should be different alternatives
@sayar I tested another database and it worked https://github.com/antoniopresto/react-native-local-mongodb/issues/1
So now we have two database CouchDB 'PouchDB' https://github.com/craftzdog/react-native-sqlite-2 and MongoDB 'NeDB' https://github.com/antoniopresto/react-native-local-mongodb
@amorenew Hi, I want to know is realm supported yet?
@lekerning in https://github.com/realm/realm-dotnet/issues/509#issuecomment-268197932
"I'm hopeful we can get a release out before Feb" "We released Windows Desktop (i.e. WPF/Console app) support. We're actively working on UWP and hope to have an alpha release in several weeks."
milestone:https://github.com/realm/realm-dotnet/milestone/4 https://github.com/realm/realm-core/issues/2059
@amorenew Good news, thanks a lot!
Welcome
@amorenew However, I see a blog https://blog.realm.io/realm-mobile-database-for-universal-windows-platform/, does it mean that UWP is supported, but react-native-windows is not supported by realm yet? Another question is, can I use realm.js in react-native-windows? Thanks
@lekerning Maybe it's in alpha or beta not final release but anyway it will take time to support React Native Check the milestone
@amorenew @lekerning unfortunately, realm for native platforms (iOS, Android, and UWP) is totally separate from realm for react-native. realm for react-native is more like realm for JavaScriptCore, with a bit of native functionality to ensure that the realm hooks are installed. What we need to get realm working on react-native-windows is realm for Chakra(Core).
Hello, what good offline DB options we have now in 2020 to use with react-native-windows and android too?
NeDB have this on github:
Deprecated. When I started this project, there were no off-line storage options for react-native besides AsyncStorage. Today there are many better options, which receive PRs and have entire teams working on. For these reasons, this project is archived.