react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Databases

Open sm2017 opened this issue 9 years ago • 13 comments

  1. How can I have a database??
  2. Is realm supported??
  3. Is sqlite suppoted??

sm2017 avatar Jul 01 '17 17:07 sm2017

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

zerglingno1 avatar Jul 02 '17 14:07 zerglingno1

Is there any other alternative way?

sm2017 avatar Jul 12 '17 07:07 sm2017

Yes, there should be different alternatives

amorenew avatar Aug 29 '17 10:08 amorenew

@sayar I tested another database and it worked https://github.com/antoniopresto/react-native-local-mongodb/issues/1

amorenew avatar Sep 06 '17 11:09 amorenew

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 avatar Sep 06 '17 11:09 amorenew

@amorenew Hi, I want to know is realm supported yet?

lekerning avatar Oct 12 '17 12:10 lekerning

@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 avatar Oct 12 '17 12:10 amorenew

@amorenew Good news, thanks a lot!

lekerning avatar Oct 12 '17 13:10 lekerning

Welcome

amorenew avatar Oct 12 '17 13:10 amorenew

@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 avatar Oct 12 '17 13:10 lekerning

@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 avatar Oct 12 '17 13:10 amorenew

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

rozele avatar Oct 12 '17 18:10 rozele

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.

billbarsch avatar Feb 16 '20 15:02 billbarsch