realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.62k stars 558 forks source link

Support for ReactNative for Windows #432

Open jamespearson opened 8 years ago

jamespearson commented 8 years ago

After speaking with Tim Oliver, it was suggested I post here a request for support of React Native on Windows Mobile.

While Windows support for ReactNative is still in development, it is coming soon, and was worthy an announcement at the Facebook F8 conference.

It would be nice to see Realm as a part of this expansion.

alazier commented 8 years ago

This is definitely on our radar

adisoftbn commented 7 years ago

+1 Might be nice to have it, since you need some persistent data storage.

juhasuni commented 7 years ago

+1 Any news about this topic? React Native Windows is definitely missing Realm.

Steviey commented 7 years ago

+1

asteinbps commented 7 years ago

+1

luxn commented 7 years ago

+1

metalmalte commented 7 years ago

+1

kenji4569 commented 7 years ago

+1

csotiriou commented 6 years ago

+1

leequarella commented 6 years ago

+1

rozele commented 6 years ago

+1, and I'd love to help out with this. I actually just tweeted about this as well - would love to chat further.

bmunkholm commented 6 years ago

@rozele Feel free to reach out to me at bm@realm.io for a chat.

amorenew commented 6 years ago

+1

Traviskn commented 6 years ago

Would the existing realm-dotnet repository be of any use for supporting react-native for windows? I imagine much of the C# code will be similar

juhasuni commented 6 years ago

Any news on this topic?

jakabjack commented 6 years ago

@Traviskn i don't think so. i'm just struggling to install realm for react native windows. I managed to use realm in a C# UWP app, using the realm nuget package. I was also able to put that package in the react-native-windows generated .sln and use it from within the launching project from c#. But it's not working from javascript side. Whenever android react native links realm, it adds a line into MainApplication.java: @Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), new RealmReactPackage() ); } besides of course adding the realm dependency to gradle. I was thinking something similar has to be done for the react-native-windows project as well:

    class MainReactNativeHost : ReactNativeHost
    {
        public override string MainComponentName => "testPrj";

#if !BUNDLE || DEBUG
        public override bool UseDeveloperSupport => true;
#else
        public override bool UseDeveloperSupport => false;
#endif

        protected override string JavaScriptMainModuleName => "index";

#if BUNDLE
        protected override string JavaScriptBundleFile => "ms-appx:///ReactAssets/index.windows.bundle";
#endif

        protected override List<IReactPackage> Packages => new List<IReactPackage>
        {
            new MainReactPackage(),
        };
    }

As you can see it has the same structure as the android app, and some line would be needed below new MainReactPackage(), for new RealmReactPackage(). Unfortunately the Realm .NET nuget package does not contain such an object.

Udbhav12 commented 5 years ago

Any update on this ?

hakimny commented 5 years ago

Any update on when realm will have support for react-native-windows?

creambyemute commented 5 years ago

@bmunkholm Did your chat with @rozele have any outcomes?

bmunkholm commented 5 years ago

@creambyemute Nope - I never heard anything.

juhasuni commented 4 years ago

@alazier, any chance of moving this forward? MS has put recently great effort on renewing the React Native for Windows and it would be great to be able to use Realm as the database for the Windows apps built on React Native. @rozele do you know if there are any plans on your side?

elcssmouhsine commented 3 years ago

anyone managed to make Realm work with react-native-windows ?

SerhiiRubelLightIT commented 3 years ago

react-native-windows definitely needs Realm support

juhasuni commented 3 years ago

Would be great to see this working with react-native-windows

marianolc commented 3 years ago

+1 for this. This would be a great feature.

xuanhuan95 commented 3 years ago

+1 for this

wecliang commented 2 years ago

+1 for this

raaannzzz commented 2 years ago

+1 for this

lkhore commented 2 years ago

+1 for this

BMecoli commented 2 years ago

+1 for this

vnijat commented 1 year ago

Hi, is there any news about supporting react-native-windows?

kneth commented 1 year ago

It is a bit early to say much. We would like to replace our current RN integration with our new JSI/Hermes integration and see if JSI/V8 is a way forward. So many things to consider before we can give a definite answer.

alanBriceno commented 1 year ago

Any news on this topic?

Murthrag commented 1 year ago

+1

kiranchenna commented 5 months ago

is there any update regarding support for react native windows. we would love to use realm for our development. we are still missing it.

hope we will hear good news soon.

kneth commented 5 months ago

It is not on our short-term roadmap but we follow the development closely.