Answer the question
In order to leave comments, you need to log in
If you create for Android / iOS in JavaScript, then what is the best way to do it?
there is a need to write an application in JavaScript for a mobile device. what is now in the top for creating this kind of applications? Cordova, React Native, I heard something about this, but I would like to decide on the best choice among existing technologies
Answer the question
In order to leave comments, you need to log in
In the top of Cordova / PhoneGap, but it is not ideal and there are no ideal tools, and everything is sad in this direction, so choose depending on the task, and to your liking.
If you know react, then react native
There will be more opportunities on cordova, but, accordingly, there will be more opportunities to make a slow application.
In the case of cordova, it is better to minimize the dom, ideally the only canvas in which all the ui
At the moment, there are two approaches to writing in JS for mobile:
1) Take a framework that wraps a webview and blame it on html + css + js just like you do when creating sites, this is actually their main (only?) advantage. Of the shortcomings - everything looks like a page in a browser and not an application and slows down at the slightest complex UI (well, at least it was like that before). Typical representatives: Cordova (aka Phonegap), based on Cordova Ionic (angular for mobile phones), and rhomobile (by the way, where is it?). Perhaps Progressive web apps will be superseded soon.
2) A framework that uses js to create a native UI. This is React native, Appcelerator Titanium. The UI components are really native (but not all are presented, you may have to write your own) and in general the application slows down less. React native requires knowledge of the "react way" and in this case is a better choice than titanium.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question