Live data from Hacker News

Discord Switching to React Native for Android App

discord.com

21–30 of 82 posts

Re: Discord Switching to React Native for Android App

#22
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.

Re: Discord Switching to React Native for Android App

#23
post #15

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

I would prefer something actually native, instead of a switch from one bad web based thing to another.

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

Re: Discord Switching to React Native for Android App

#25
post #20

That’s good. Having one app be RN and one native is probably the worst thing you can do. That said, seems like Android users really dislike this update as the app seems slower, buggier and less polished than it used to be.

A better choice would have been to port their RN-app on iOS to an actual native iOS-app.

Why? I use it all the time and I think it works great.

Re: Discord Switching to React Native for Android App

#27

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 two codebases

Re: Discord Switching to React Native for Android App

#28
post #15

Earlier quoted context omitted.

I would prefer something actually native, instead of a switch from one bad web based thing to another.

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.

Re: Discord Switching to React Native for Android App

#30
post #12

https://twitter.com/sandofsky/status/1554178071820771328?s=2...

I've been using the iOS RN app for years (on a phone that's currently 4 years old) and never had any performance issues. There may just be some transition pains they need to work through on Android
Post reply on HN