React-native-windows: Databases

Created on 1 Jul 2017  路  13Comments  路  Source: microsoft/react-native-windows

  1. How can I have a database??
  2. Is realm supported??
  3. Is sqlite suppoted??
needs-update-or-close question

Most helpful comment

@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).

All 13 comments

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

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GurtejSafaltek picture GurtejSafaltek  路  3Comments

kikisaints picture kikisaints  路  4Comments

syedibrahimt picture syedibrahimt  路  3Comments

dubiao picture dubiao  路  3Comments

datkinson picture datkinson  路  3Comments