Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ReactNative for Windows #432

Open
jamespearson opened this issue May 13, 2016 · 36 comments
Open

Support for ReactNative for Windows #432

jamespearson opened this issue May 13, 2016 · 36 comments

Comments

@jamespearson
Copy link

jamespearson commented May 13, 2016

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
Copy link
Contributor

alazier commented May 13, 2016

This is definitely on our radar

@adisoftbn
Copy link

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

@juhasuni
Copy link

juhasuni commented Feb 1, 2017

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

@Steviey
Copy link

Steviey commented Feb 6, 2017

+1

6 similar comments
@asteinbps
Copy link

+1

@luxn
Copy link

luxn commented Apr 12, 2017

+1

@metalmalte
Copy link

+1

@kenji4569
Copy link

+1

@csotiriou
Copy link

+1

@leequarella
Copy link

+1

@rozele
Copy link

rozele commented Aug 16, 2017

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

@bmunkholm
Copy link
Contributor

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

@amorenew
Copy link

+1

@Traviskn
Copy link

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
Copy link

juhasuni commented Oct 5, 2017

Any news on this topic?

@jakabjack
Copy link

jakabjack commented Mar 6, 2018

@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
Copy link

Udbhav12 commented Jul 3, 2018

Any update on this ?

@hakimny
Copy link

hakimny commented Sep 17, 2018

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

@creambyemute
Copy link

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

@bmunkholm
Copy link
Contributor

@creambyemute Nope - I never heard anything.

@juhasuni
Copy link

juhasuni commented Apr 1, 2020

@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
Copy link

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

@SerhiiRubelLightIT
Copy link

react-native-windows definitely needs Realm support

@juhasuni
Copy link

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

@marianolc
Copy link

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

@xuanhuan95
Copy link

+1 for this

2 similar comments
@wecliang
Copy link

+1 for this

@raaannzzz
Copy link

+1 for this

@lkhore
Copy link

lkhore commented Aug 9, 2021

+1 for this

@BMecoli
Copy link

BMecoli commented Dec 3, 2021

+1 for this

@vnijat
Copy link

vnijat commented May 24, 2022

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

@kneth
Copy link
Contributor

kneth commented May 24, 2022

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
Copy link

Any news on this topic?

@Murthrag
Copy link

+1

@kiranchenna
Copy link

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
Copy link
Contributor

kneth commented Nov 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests