Re:Discord Switching to React Native for Android App
by jrsj on Monday August 01, 2022 @04:22PM
(#32311559)
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.
[ Parent
| on HN ]
Re:Discord Switching to React Native for Android App
by volumetric on Monday August 01, 2022 @04:59PM
(#32311962)
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
by nabakin on Monday August 01, 2022 @05:45PM
(#32312442)
Strange, I've never had that happen and I've used discord for years. A good portion of that time was spent using it on my 2015 MacBook Pro.
Re:Discord Switching to React Native for Android App
by tazard on Monday August 01, 2022 @06:08PM
(#32312692)
I had lots of issues on my M1 Mac, mostly it was solved by running their beta version though. No issues on any other platforms
Re:Discord Switching to React Native for Android App
by DanielHB on Monday August 01, 2022 @08:45PM
(#32313957)
it is because they are not afraid to drop to native when it makes sense, see:
https://discord.com/blog/why-discord-is-sticking-with-react-...
react-native is NOT a total replacement for native code, you still need native devs. It is more like instead of 5 ios and 5 android devs you need 4 JS, 1 android and 1 ios devs (but the ios and android persons also need to know JS)
Re:Discord Switching to React Native for Android App
by bravetraveler on Monday August 01, 2022 @06:48PM
(#32313122)
I have to assume it's partly because they never update Electron -- I've not been able to run it under Wayland for a few months now
Re:Discord Switching to React Native for Android App
by RobbieGM on Tuesday August 02, 2022 @03:07PM
(#32322956)
--ozone-platform=WAYLAND ?
Re:Discord Switching to React Native for Android App
by bravetraveler on Tuesday August 02, 2022 @05:06PM
(#32324306)
That is indeed how I would enable it, but it stopped working! I get this:
interface 'wl_output' has no event 4