Hacker News new | ask | show | jobs
by gorbypark 1773 days ago
React Native on Windows and macOS works decently well these days. The macOS port is lagging behind the Windows one, but only by one major version. There are still some third party modules that don’t work on the desktop ports, but the support is getting better by the day. I have one small app in production that supports Android/iOS/Windows/macOS and web, all in one code base. Definitely a game changer, especially with how magically good React Native Web works. I’m using RNWeb for web-only projects, it’s that good!
2 comments

Nice. I will have to give it another try. One thing that was a blocker for me at the time was no react-native-svg on Mac for rendering custom UI widgets. Doesn’t look like this has been resolved yet but that was quite a specific use case I had.
It seems that macOS support was added to react-native-svg in version 12.1.1 (which is the latest version), it appears they just haven't updated the docs/README yet to reflect that. See https://github.com/react-native-svg/react-native-svg/release...
Oh this is super cool! Thanks so much for sharing :D
Any news about it for linux (gnome or kde?)

It's frustrating not being able to develop something for the 3 oses i use at once (windows, linux, android)

There are a few half-finished and seemingly abandoned ports to linux. React-native for Windows/macOS is being developed by Microsoft to support their Office teams (afaik, some screens in Office for mobile are react-native, and they want to use it on the real desktop version as well). Unfortunately since Office isn't available for linux, Microsoft isn't doing a port as well.
That's sad, but I can see that making sense.
A fallback option for Linux could be to render the React Native app to HTML/CSS/JS using react-native-web, then package it in an Electron app. Depending on the level of native integration this could be tricky though.