3 ms·
When I tried similar solutions (running business logic in JS and abstracting native platform specific UI implementations), one of main problems I encountered wa
by somethingreen 12y ago
When I tried similar solutions (running business logic in JS and abstracting native platform specific UI implementations), one of main problems I encountered was that JS was running in a clean VM while most libraries rely in some way on either browser or node.js environment.
I wonder if React Native addresses this.
- pluma 12y agoReact is pretty much environment agnostic. It supports server-side rendering because it works without a DOM. Based on how they are specifically talking about not sharing code but sharing knowledge (i.e. same API, different components), I'd assume the environment-specific stuff is implemented by the actual primitive components (View, etc, the equivalent of div, etc, in the browser). They make it very clear that you won't be taking your web app and just magically have it work natively. You'd just write your native app using React, too.