4 ms·
I asked this on a previous React Native thread, and I’m still curious: is RN (on mobile, as that’s where it’s currently used) actually faster than something lik
by iainmerrick 6y ago
I asked this on a previous React Native thread, and I’m still curious: is RN (on mobile, as that’s where it’s currently used) actually faster than something like PhoneGap? Are there any benchmarks or demos? Anyone got any anecdotes of a like-for-like comparison?
I’m skeptical (though certainly willing to be convinced) because RN runs your JS application in a separate thread from the UI, with a rather expensive bridge sending JSON messages back and forth. That seems to me a poor design choice.
Browsers have the downside of working with the complex DOM that doesn’t map as well to native widgets. But browsers are mature and highly optimized. So I would guess that performance might be a wash.
- firloop 6y agoPerformance is just one reason companies adapt something like React Native, the ability to have web developers* come in and string native-quality components together is another. React Native can feel better than mobile web and have access to lower level APIs. * I think this is more of a selling point than a reality. I think in practice, to make a React Native feel and work well requires native platform knowledge.
- KuhlMensch 6y agoYes its faster, for majority of cases. But if you overload the bridge, you not only hit a bottleneck, you hit an async bottleneck between your UI code and native. Very rare for that to happen in my experience, and well worth the trade-off.