2 ms·
AirBnB has a series of in depth blog posts about their decision to abandon RN. In particular this quote seemed extremely worrying to me: > While debugging, Rea
by bobthepanda 7y ago
AirBnB has a series of in depth blog posts about their decision to abandon RN. In particular this quote seemed extremely worrying to me:
> While debugging, React Native attaches to a Chrome Developer Tools instance. This is great because it is a powerful debugger. However, once the debugger is attached, all JavaScript runs within Chrome’s V8 engine. This is fine 99.9% of the time. However, in one instance, we got bit when toLocaleString worked on iOS but only worked on Android while debugging. It turns out that the Android JSC doesn’t include it and it was silently failing unless you were debugging in which case it was using V8 which does. Without knowing technical details like this, it can lead to days of painful debugging for product engineers.
https://medium.com/airbnb-engineering/react-native-at-airbnb-the-technology-dafd0b43838 https://medium.com/airbnb-engineering/react-native-at-airbnb...
- abacadaba 7y agoHaving been bitten by this exact issue one or two times, meh. Par for the course in the life of a Javascript dev, really. RN would definitely still be my go to tool for the majority of green-field mobile apps. If I'd already invested in learning flutter/Dart I'd probably feel the same about that, but certainly feel no urgent need to go out and learn it. As in, I don't think there's a significant difference in what I'd be able to accomplish, and my time is probably better invested elsewhere.
- bobthepanda 7y agoThat's great from a dev perspective. Not so much from a product perspective, particularly if you operate at AirBNB scale and your issue could be costing lots of money for every second of failed debugging.
- abacadaba 7y agoi don't remember exactly how long this cost me, but it sure as fsck wasn't days. ymmv.
- saagarjha 7y ago> Android JSC Wait, React Native uses JavaScriptCore on Android?
- ec109685 7y agoYes. However Facebook now has their own JavaScript engine.
- bfrog 7y agoThe best is when the app runs faster while debugging than it does on the phone because of this exact issue. I found it nearly impossible to profile sanely