logoalt Hacker News

hermitwriteryesterday at 4:23 PM3 repliesview on HN

Your data is out of date. React Native performs within spitting distance of raw native now because in the last 2 years... it basically became native - it's now false dichotomy


Replies

faangguyindiatoday at 12:58 AM

I tried it about 2 months ago, btw. No prior experience with Flutter or RN.

flakinessyesterday at 5:28 PM

mind sharing a link or two on the native code generation bit? I'm far behind from the scene but still curious.

show 1 reply
cyberaxyesterday at 5:47 PM

It's not. RN has always used native widgets (with a custom renderer) but the JS code itself is purely interpreted.

They increased the interpreter performance by quite a bit, but JITs are impossible on iOS, so it can never be fast.

We have a RN app that needs to do a lot of geometry processing and things like polyclip are unbearably slow, so we had to add native modules to accelerate them. The web version with a true JIT works just fine.