4 ms·
React Native apps compile into native apps. That is, no Cordova.
by clessg 11y ago
React Native apps compile into native apps. That is, no Cordova.
- azinman2 11y agoMy understanding is not that. They don't "compile into" anything. They're run as JavaScript on the phone. The difference is react native calls into native components -- it isn't a universal write once run anywhere. You'll have to craft different JavaScript for android versus iOS. Hopefully most of your code is business logic or other things than UI components.
- clessg 11y agoWell yes, the JavaScript is not converted into Objective C, it is bundled into the app bundle that you submit to the App Store. I guess it depends on whether you consider the ultimate bundling of the application to be compiling. Anyway, the point is that it doesn't run in a WebView. The JavaScript is executed by JavaScriptCore.