realm-js icon indicating copy to clipboard operation
realm-js copied to clipboard

Support for ReactNative for Windows

Open jamespearson opened this issue 9 years ago • 36 comments

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.

jamespearson avatar May 13 '16 08:05 jamespearson

This is definitely on our radar

alazier avatar May 13 '16 17:05 alazier

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

adisoftbn avatar Nov 15 '16 14:11 adisoftbn

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

juhasuni avatar Feb 01 '17 12:02 juhasuni

+1

Steviey avatar Feb 06 '17 22:02 Steviey

+1

asteinbps avatar Mar 29 '17 05:03 asteinbps

+1

luxn avatar Apr 12 '17 11:04 luxn

+1

metalmalte avatar Apr 15 '17 15:04 metalmalte

+1

kenji4569 avatar Apr 26 '17 06:04 kenji4569

+1

csotiriou avatar Jul 19 '17 15:07 csotiriou

+1

leequarella avatar Jul 23 '17 00:07 leequarella

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

rozele avatar Aug 16 '17 21:08 rozele

@rozele Feel free to reach out to me at [email protected] for a chat.

bmunkholm avatar Aug 17 '17 14:08 bmunkholm

+1

amorenew avatar Aug 29 '17 09:08 amorenew

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

Traviskn avatar Aug 30 '17 21:08 Traviskn

Any news on this topic?

juhasuni avatar Oct 05 '17 07:10 juhasuni

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

jakabjack avatar Mar 06 '18 13:03 jakabjack

Any update on this ?

Udbhav12 avatar Jul 03 '18 07:07 Udbhav12

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

hakimny avatar Sep 17 '18 18:09 hakimny

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

creambyemute avatar Dec 06 '18 12:12 creambyemute

@creambyemute Nope - I never heard anything.

bmunkholm avatar Dec 06 '18 13:12 bmunkholm

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

juhasuni avatar Apr 01 '20 08:04 juhasuni

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

elcssmouhsine avatar Jul 15 '20 05:07 elcssmouhsine

react-native-windows definitely needs Realm support

SerhiiRubelLightIT avatar Jan 18 '21 14:01 SerhiiRubelLightIT

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

juhasuni avatar Feb 10 '21 10:02 juhasuni

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

marianolc avatar Mar 24 '21 05:03 marianolc

+1 for this

xuanhuan95 avatar Apr 20 '21 20:04 xuanhuan95

+1 for this

wecliang avatar Jul 21 '21 07:07 wecliang

+1 for this

raaannzzz avatar Jul 22 '21 17:07 raaannzzz

+1 for this

lkhore avatar Aug 09 '21 06:08 lkhore

+1 for this

BMecoli avatar Dec 03 '21 17:12 BMecoli