ProductiveRage / Bridge.React

Bindings for Bridge.NET for React - write React applications in C#!
MIT License
74 stars 14 forks source link

[question] Bridge.React vs React Native #38

Closed karolzlot closed 6 years ago

karolzlot commented 6 years ago

I am new to Javascript / React.

I would like to write React Native web/desktop/mobile apps using c#. This approach would allow me to: -share most code -use c# language, which I love. -have native ui on web/android/ios/macos/linux/windows

Is it possible to do that with Bridge.React?

ProductiveRage commented 6 years ago

I'm afraid that the Bridge.React bindings are only bindings for the web aspect of React and there is nothing relating to React Native.

I haven't tried React Native at all yet and so I don't know how simple or complex that it would be to add support for it. Even if it was quite straightforward, I would probably suggest that it be a separate repo / NuGet package because I would imagine that you would be unlikely to have one C# project that builds both the web frontend and the mobile applications.

You are the second person to ask about this, so I'll try to update the README soon to explain this for anyone else wondering in the future!

desarrollo03TR commented 6 years ago

Why not Xamarin? it support iOS, Android, Mac and Windows.

ProductiveRage commented 6 years ago

@desarrollo03TR - I guess that if someone really wanted to share code between web applications and desktop applications and mobile applications then they could use Xamarin for the mobile apps and to share some common C# libraries between the different application (though I suspect that there would be little-to-no sharing of UI code between mobile, desktop and web applications).

For writing a desktop application, there are now Bridge bindings to Electron (via retyped) that one might consider. The Slack client, for example, is (I believe, according to this) written in this manner. A lot of people complain about the resources that Electron applications use, though..