Live data from Hacker News

ReactXP – A library for building cross-platform apps

microsoft.github.io

41–50 of 124 posts

Re: ReactXP – A library for building cross-platform apps

#41
post #14

Despite explaining that XP stands for "cross platform", I still think that this is mis-named and many will assume it relates to one of Microsoft's biggest ever brand names with global recognition. At first glance I decided not to read the article because I thought it irrelevant due to the XP.

"React" part is also used by windows clone. React should be completely renamed today for reader's convenience.

Re: ReactXP – A library for building cross-platform apps

#43
post #34
post #19

Earlier quoted context omitted.

How do you use React Native on the web?

There are several React Native web players. One is used in their documentation site.

Is that really comparable though? You use that when you want to demo React Native on the web. This means you can actually code for both platforms.

Re: ReactXP – A library for building cross-platform apps

#44
post #33

>With React and React Native, your web app can share most its logic with your iOS and Android apps, but the view layer needs to be implemented separately for each platform. As far as I understand, you don't need to do this in react-native. Only when you want to use some special features. Or am I missing something?

> Or am I missing something?

Yes, it's not possible. You can't just use your React code as React Native. There are many small API differences.

Re: ReactXP – A library for building cross-platform apps

#45
I've been developing a cross-platform app with React Native, and react-native-web has been working really well. It took almost no effort to get my React Native app working in a browser. I might be wrong, but it looks like ReactXP is just an alternative to react-native-web, with some additional abstractions and conventions for stores, etc.

I'm not sure I want to switch to ReactXP. I really like being able to use the React Native Animated API on the web, and I can also use wrapper libraries such as react-native-animatable.

Re: ReactXP – A library for building cross-platform apps

#46
I really want React for desktop apps. Currently we are running into some performance issues with large datasets and spreadsheets, and being able to offer a performant desktop app would be ideal.

Right now we're considering using .NET and ReoGrid, since Qt is too expensive and we only target Windows anyways.

Re: ReactXP – A library for building cross-platform apps

#47
post #28

Earlier quoted context omitted.

Does Xamarian provide desktop widgets?

There is Xamarin.Forms, which is essentially cross platform XAML with a base set of widgets. It supports Android, iOS, UWP, and they are working on MacOS. No Linux yet.

I wouldn't recommend Forms, I worked with it for about 4-5 months full time last summer and it was unstable and unperformant.

Re: ReactXP – A library for building cross-platform apps

#48
post #46

I really want React for desktop apps. Currently we are running into some performance issues with large datasets and spreadsheets, and being able to offer a performant desktop app would be ideal. Right now we're considering using .NET and ReoGrid, since Qt is too expensive and we only target Windows anyways.

If you have a performance problem and you only target one OS, using React seems more like a band-aid than a real solution. I assume your app is currently written in javascript, because I don't see any other reason to use React for performance.

I think you should consider moving away from JS, it will probably save you from future problems.

Re: ReactXP – A library for building cross-platform apps

#49
post #33

>With React and React Native, your web app can share most its logic with your iOS and Android apps, but the view layer needs to be implemented separately for each platform. As far as I understand, you don't need to do this in react-native. Only when you want to use some special features. Or am I missing something?

It depends. In our current app, all we needed to implement separately was the margin for the status bar, literally two lines of code.

But as we move further, we'll be looking into making the versions for both platform feel truly native, and that will require some changes to navigation components and the overall navigation paradigm (tabs vs. drawer, screens vs. cards etc.).

The platform differences are as much about design as about code, and I don't see how you can escape that work with any cross-platform framework. But React Native makes it very easy to implement in a way that lets us share all but a few components.

Re: ReactXP – A library for building cross-platform apps

#50
post #46

I really want React for desktop apps. Currently we are running into some performance issues with large datasets and spreadsheets, and being able to offer a performant desktop app would be ideal. Right now we're considering using .NET and ReoGrid, since Qt is too expensive and we only target Windows anyways.

You can use Electron and do that. Not a ton of love for it around here because omg a web page as a desktop app the horror but I've had good experiences with it. (And if you e ever used Slack or Atom, you've used Electron)
Post reply on HN