Live data from Hacker News

Discord Switching to React Native for Android App

discord.com

31–40 of 82 posts

Re: Discord Switching to React Native for Android App

#32
post #28

Earlier quoted context omitted.

React Native isn't really web based. It draws real, native UI elements, not HTML.

Still a web framework though, even if the end result isn't HTML.

The only thing "web" about it is that it uses javascript. Do you want to elaborate how using javascript makes for bad UI?

Re: Discord Switching to React Native for Android App

#33

I hope desktop apps can soon start switching from Electron to React Native.

To my surprise, the most common issues I see with the desktop app are audio device issues, e.g. the app doesn't get any audio from my mic the first time I run it, only after I kill and re-launch it. The UI has been fine, if weird. I don't know of any major apps using RN on desktop so going that route may be worse than sticking with Electron.

Re: Discord Switching to React Native for Android App

#35
post #28

Earlier quoted context omitted.

React Native isn't really web based. It draws real, native UI elements, not HTML.

Still a web framework though, even if the end result isn't HTML.

It's not a web framework. It's a native application framework.

Re: Discord Switching to React Native for Android App

#36

React Native really is a game changer for mobile development. I picked it up last year to build a new iOS app for the first time since the old Objective-C/UI-Kit days. I was literally building things in minutes that would have taken hours or days of writing custom OpenGL and networking code back then. Any performance tradeoffs left at this point are worth it IMO.

I picked up React Native a few years ago for a project and spent a week doing nothing but fighting the build system. And then I spent another week doing the same on Android.

The first question that popped into my head when I saw this headline was: Is React Native still a hot mess?

Re: Discord Switching to React Native for Android App

#37
post #13

I hate a lot of Electron and React Native based software, but Discord manages to avoid performance, stability, and quality issues that most seem to encounter. I don't know what they do or how they do it, but I think it's very impressive.

We used it a lot over the pandemic and random crashes and having to restart because it started using way too many system resources was extremely common. Nobody left it open when not in active use, because it was such a resource hog. Using it on battery would take a macbook from full to 0% in like two hours flat. This was with a couple very small private groups only, no use of large public channels or anything.

Re: Discord Switching to React Native for Android App

#38

Lot of people here don't know what React Native actually is

There is still a _desperate_ need for a widely used common standard for GUI; I'd even be OK with that happening to be 'things are webpages' if they were OS native and would otherwise behave similarly to native apps on every platform. That HTML5 desktop or even Postscript would be nice; anything as long as it's a real standard already installed and kept up to date on 99% of potential user's systems.

Re: Discord Switching to React Native for Android App

#39

React Native really is a game changer for mobile development. I picked it up last year to build a new iOS app for the first time since the old Objective-C/UI-Kit days. I was literally building things in minutes that would have taken hours or days of writing custom OpenGL and networking code back then. Any performance tradeoffs left at this point are worth it IMO.

I picked up React Native a few years ago for a project and spent a week doing nothing but fighting the build system. And then I spent another week doing the same on Android. The first question that popped into my head when I saw this headline was: Is React Native still a hot mess?

>The first question that popped into my head when I saw this headline was: Is React Native still a hot mess?

Expo [0] is what really makes things painless now. There's no more struggling with native binary dependency hell. And the entire App store submission process is completely managed; building, signing, uploading, and pushing a new version from your machine to Apple is just a single CLI command.

[0] https://expo.dev/

https://dev.to/mauro_codes/expo-101-building-mobile-apps-in-...

Re: Discord Switching to React Native for Android App

#40

Do they share code between desktop and RN?

My company has a RN app and a React web app. We've found there isn't much opportunity for sharing UI code; you can share hooks, data layer type stuff, etc, but the actual components aren't really compatible because the leaves of the UI tree are totally different (native elements vs HTML elements) The bigger wins come from shared tooling/skillset/headspace. Our UI devs can fairly easily jump back and forth between the…

Did you consider using React Native Web?
Post reply on HN