3 ms·
How is React running natively in React Native? The most basic things are reimplemented (quite badly) in JS, such as controller navigation (for the lack of a bet
by LeoNatan25 10y ago
How is React running natively in React Native? The most basic things are reimplemented (quite badly) in JS, such as controller navigation (for the lack of a better term), buttons, gestures, animations. Most of them run on the JS stack, which is run on a JavaScriptCore VM instance, the same VM running when using a web view. How is any of that native? For me, "native" means using only OS-native components for navigation and views, gesture handling, animations, interactions, etc., and also, do not run in additional VMs. If you are willing to let go of the last requirement, NativeScript and Xamarin are a lot more sensible "native" choices than React Native.
- Illniyar 10y agoThe choice of words was poor, but the point of the original poster, I think, were clear. React-native provides react with primitives that are native (such as View, Button etc...). Navigation is also native (as in the transitions are native). Until angular or vue can run withou the dom (which is the #1 reason for performance issues in wwb apps), they cannot compete with react.
- LeoNatan25 10y agoTransitions are not native. They are simulated to appear as if native from JS.