Hacker News new | ask | show | jobs
by htormey 3178 days ago
I think the article would have been much better if the author had left out the section about RN. Failing that I would have liked to see him dig into why RN was slow for his use case and what he tried to do to fix theses issues.

"While it uses the same React paradigm, there’s still a lot of differences.It seems performance is reduced significantly as your application and the react framework is controlling all the high level rendering functions from within a JavaScript control thread."

It really seems like this person didn't spend a lot of time looking into performance when assessing React Native. Facebook have some really nice docs on this:

https://facebook.github.io/react-native/docs/performance.htm...

They have a whole section on how to handle performance for user interactions/animations/etc which is well worth reading. Many RN related performance issues boil down to not being mindful of how javascript interacts with the native bridge. Tal Kol from Wix wrote a really great article about this, which you can find here:

https://hackernoon.com/moving-beyond-animations-to-user-inte...

I'm sure Flutter/Dart are great tools. It's just a little odd to see someone who know's React dismiss RN off handedly for performance reasons without making much of an effort to read the developer docs.

1 comments

>Many RN related performance issues boil down to not being mindful of how javascript interacts with the native bridge.

Yes, but being mindful of this architectural choice doesn't make it go away. It will always have to be worked around, which may add complexity depending on the specifics of the app.

I haven't made my mind up about whether or not to use RN for an actual product. RN has a lot going for it, but this particular architectural choice is a negative in my view.

The other concern I have is the lack of JIT on iOS. Or is that already a thing of the past?

None of what I'm saying should be taken as some sort of firm assertion. My experience with RN is minimal. I'm keeping an open mind.