When I started with React Native back in 2016, I was quite skeptical. Frameworks such as PhoneGap and Cordova had already existed for a while, yet nobody seemed to take hybrid development seriously. Everything felt like a workaround and native expertise was constantly required to do anything beyond the basics.
It took a few projects — some successful and some less so — to fully take in the advantages, caveats, and pitfalls of React Native. In this article, I will summarise these experiences and how they reflect on hybrid app development in general.
Writing tests can save you a lot of trouble down the road and help you gain peace of mind. Another, less obvious reason is that good tests reflect good architecture. When your application has a coherent structure, proper separation of concerns, and follows best practices, writing tests should be a breeze.