> The promise is simple and compelling: write once, ship twice. iOS and Android all in one shot<p>While this is certainly feasible (largely depending on the requirements of your app), it is important to clarify that RN never promised "write once ship twice".<p>RN's promise is "learn once, write anywhere", meaning that the technology and mental model is what transcends platforms, not the codebase itself.<p>Just wanted to make this clear so as to avoid any possible frustration for newcomers after the fact.
A note on the require issue: this makes sense if you think of requiring as it's compiled equal - importing.<p>You can't dynamically import dependencies - so if you're wanting to load JSON dynamically you should be using other mechanisms (even if it's just a FS operation or having an internal service to return JSON).