{"id":283381,"date":"2017-01-03T20:30:04","date_gmt":"2017-01-03T17:30:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=283381"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=283381","title":{"rendered":"NativeScript, \u0447\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c \u0438 \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043e\u043d \u043d\u0443\u0436\u0435\u043d?"},"content":{"rendered":"<p>\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0445\u0430\u0431\u0440\u0430\u0436\u0438\u0442\u0435\u043b\u0438, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0412\u043b\u0430\u0434\u0438\u043c\u0438\u0440 \u041c\u0438\u043b\u0435\u043d\u043a\u043e, \u044f frontend-\u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0418\u043d\u043d\u043e\u0441\u043e\u0444\u0442, \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0432 \u0433\u043e\u0440\u043e\u0434\u0435 \u0418\u043d\u043d\u043e\u043f\u043e\u043b\u0438\u0441 \u0438 \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0439\u0441\u044f \u0440\u0435\u0437\u0438\u0434\u0435\u043d\u0442\u043e\u043c \u043e\u0441\u043e\u0431\u043e\u0439 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u043e\u043d\u044b \u0433. \u0418\u043d\u043d\u043e\u043f\u043e\u043b\u0438\u0441.<\/p>\n<p>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u043e\u0432\u0435\u0434\u0430\u044e \u043e \u0442\u0430\u043a\u043e\u043c \u0437\u0432\u0435\u0440\u0435, \u043a\u0430\u043a NativeScript(\u0434\u0430, \u043e\u043d \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f, \u0434\u0430, \u0441\u0438\u043b\u044c\u043d\u043e).<br \/>  NativeScript \u2014 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438? \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 write once \u2014 use everywhere, \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0443 \u043d\u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c!<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/930\/340\/01c\/93034001ceb448469290459039e8b54e.png\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0427\u0442\u043e \u0442\u044b \u0442\u0430\u043a\u043e\u0435?<\/h2>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e, {N} \u044d\u0442\u043e JS, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 JSVM, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u043e\u0439 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b(V8 \u0434\u043b\u044f Android, WebKit iOS).<br \/>  \u0418 \u0432\u0441\u0435-\u0431\u044b \u0431\u044b\u043b\u043e \u0431\u044b \u0433\u0440\u0443\u0441\u0442\u043d\u043e, \u0435\u0441\u043b\u0438 \u0431\u044b \u043d\u0435 \u043e\u0434\u043d\u043e \u043d\u043e \u2014 NS \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c API.<br \/>  \u0422.\u0435. <\/p>\n<pre><code>let card = new com.google.android.support.v7.widget.CardView(someContext); <\/code><\/pre>\n<p>   \u2014 \u0412\u0430\u043b\u0438\u0434\u043d\u044b\u0439 {N} \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 proxy-\u043e\u0431\u044a\u0435\u043a\u0442, \u0432\u0441\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0442 \u043d\u0438\u0445.<\/p>\n<p>  \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043a\u043e\u0434 \u0432\u044b\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0434\u043b\u044f Android. \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0442\u0430\u043a\u043e\u0439 \u0434\u043b\u0438\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0432\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u0442\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 nativescript-\u043f\u043b\u0430\u0433\u0438\u043d\u0430.<\/p>\n<p>  Execution flow \u0432 NativeScript \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/bc7\/bce\/691\/bc7bce6915d247adb00016529d7bc549.png\"\/><br \/>  <i>*\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u0437\u044f\u0442\u043e \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 NativeScript<\/i><\/p>\n<p>  \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0440\u0435\u043b\u0438\u0437\u0430 Angular 2, {N} \u0438\u043c\u0435\u043b \u0432\u0435\u0441\u044c\u043c\u0430 \u0443\u0432\u0435\u0441\u0438\u0441\u0442\u044b\u0435 \u043c\u0438\u043d\u0443\u0441\u044b, \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e xml, \u0430 \u0432\u0435\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443.<br \/>  \u041d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c, {N} \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0441\u044f \u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043c\u043e\u0434\u0443\u043b\u0438, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0435 \u0430\u0431\u0441\u0442\u0440\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u041e\u0421, \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0444\u0438\u0447, \u043d\u0435 \u0437\u0430\u0431\u043e\u0442\u044f\u0441\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b.<br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430.<\/p>\n<pre><code> import fs = require(\u201cfile-system\u201d) let exists = fs.File.exists(\u201cabc.ini\u201d); \/\/ \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e boolean \u0438\u0437 Java \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 JS boolean. <\/code><\/pre>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u043c, {N} \u2014 JS+XML, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 JSVM \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0438\u0437 JS. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0432\u0432\u0438\u0434\u0435 XML \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u0438\u0439 \u0441\u0430\u0431\u0441\u0435\u0442 CSS, \u0430 \u0435\u0449\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435.<\/p>\n<h2>\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 ReactNative?<\/h2>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, NativeScript \u0438 ReactNative \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f. ReactNative \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 DOM, NS \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043b\u044d\u0439\u0430\u0443\u0442\u044b.<br \/>  ReactNative \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445, NativeScript \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438\u0437 AndroidArsenal \u0438 Cocoapods.<\/p>\n<h2>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u2014 Angular 2 + NS<\/h2>\n<p>  \u0421 \u0432\u044b\u0445\u043e\u0434\u043e\u043c Angular 2 \u043c\u0438\u0440 \u0432\u0435\u0431\u0430 \u0441\u043e\u0442\u0440\u044f\u0441\u0441\u044f, \u0432 \u0442.\u0447. \u0442\u0440\u044f\u0441\u043b\u0438\u0441\u044c \u0442\u0435, \u043a\u0442\u043e \u043f\u0438\u0441\u0430\u043b \u043d\u0430 rc \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u043b \u0434\u043e\u0431\u0440\u0443\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043a\u043e\u0434\u0430 \u043f\u043e\u0434 \u043d\u043e\u0432\u044b\u0439 rc.<br \/>  \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0430 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u0439 \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0430 Angular 2 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u043c. \u0425\u043e\u0447\u0435\u0448\u044c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0440\u0435\u043d\u0434\u0435\u0440 \u2014 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u044d\u0442\u043e-\u0442\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0440\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 Telerik.<\/p>\n<p>  \u0427\u0442\u043e \u0436\u0435 \u043d\u0430\u043c \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 Angular 2 + TypeScript + NativeScript?<br \/>  \u0410 \u0434\u0430\u0435\u0442 \u044d\u0442\u043e \u043d\u0430\u043c \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 code-sharing, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0444\u0438\u0447 \u0430\u043d\u0433\u0443\u043b\u044f\u0440\u0430.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0448\u0430\u0440\u0438\u0442\u044c \u0432\u0430\u0448\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0431-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c \u0438 \u043c\u0435\u0436\u0434\u0443 tns-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c.<\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0448\u0430\u0431\u043b\u043e\u043d\u0430:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/83a\/c48\/0c3\/83ac480c31c748d08eff120cf24aa87f.png\"\/><br \/>  \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 ngFor, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u0436\u0435 \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c ListView \u2014 \u0442\u0430\u043c \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0448\u0430\u0431\u043b\u043e\u043d\u0430, \u0442.\u0435. android \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u044b\u0442\u044c \u043f\u0440\u043e ViewHolder\u2019\u044b \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. <\/p>\n<p>  \u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u0430 Android:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/fcf\/4eb\/c0e\/fcf4ebc0e2714203acb289e66d756171.png\"\/><br \/>  \u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u043d\u0430 iOS:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e28\/736\/ff7\/e28736ff78d54ca183aae6ae3d799a4c.png\"\/><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c platform-specific \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u0443\u044e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b:  <\/p>\n<pre><code class=\"xml\">&lt;ios&gt;&lt;\/ios&gt; &lt;android&gt;&lt;\/android <\/code><\/pre>\n<p>  \u0418 \u0440\u0430\u0437 \u0443\u0436 \u0437\u0430\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435, \u0442\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u043d\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c two-way binding, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e angular 2:<br \/>  \u0422.\u0435. \u0435\u0441\u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e name \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u0442\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u0435\u0451 \u043a \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c\u0443 \u043f\u043e\u043b\u044e \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"xml\">&lt;TextField ([text])=&quot;variable&quot;&gt;&lt;\/TextField&gt;<\/code><\/pre>\n<p>  \u0418 \u043a \u0441\u043b\u043e\u0432\u0443 \u043e\u0431 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0435\u0451 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e css keyframes, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 keyfraymes \u0438\u043b\u0438 \u0436\u0435 \u043e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Promise.<br \/>  \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Promise:  <\/p>\n<pre><code> let view = this.page.getViewById(&quot;grid&quot;); view       .animate({backgroundColor: new Color(&quot;#efefef&quot;), duration: 75})       .then(        () =&gt; {                     view.animate({backgroundColor: new Color(&quot;white&quot;), duration: 75});         } ); <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u043d\u0442\u0440\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u043a \u043a\u043e\u043d\u0446\u0443, \u043e\u043f\u0440\u043e\u0441 \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0447\u0443\u0442\u044c \u043d\u0438\u0436\u0435.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a Telerik \u0441\u043c\u043e\u0433 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u043d\u0433\u0443\u043b\u044f\u0440 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0410\u043b\u0435\u043a\u0441\u0435\u044f \u041e\u0445\u0440\u0438\u043c\u0435\u043d\u043a\u043e \u0441 GDG Perm: <a href=\"https:\/\/www.youtube.com\/watch?v=eqJDM8PV-lE&#038;index=4&#038;list=PLuhR-xNwqdQhyCGY_1SW2olVDSG5VBoxd\">www.youtube.com\/watch?v=eqJDM8PV-lE&#038;index=4&#038;list=PLuhR-xNwqdQhyCGY_1SW2olVDSG5VBoxd<\/a><\/p>\n<p>  NativeScript: <a href=\"http:\/\/nativescript.org\/\">nativescript.org<\/a><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/318950\/\"> https:\/\/habrahabr.ru\/post\/318950\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0445\u0430\u0431\u0440\u0430\u0436\u0438\u0442\u0435\u043b\u0438, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0412\u043b\u0430\u0434\u0438\u043c\u0438\u0440 \u041c\u0438\u043b\u0435\u043d\u043a\u043e, \u044f frontend-\u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0418\u043d\u043d\u043e\u0441\u043e\u0444\u0442, \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0432 \u0433\u043e\u0440\u043e\u0434\u0435 \u0418\u043d\u043d\u043e\u043f\u043e\u043b\u0438\u0441 \u0438 \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0439\u0441\u044f \u0440\u0435\u0437\u0438\u0434\u0435\u043d\u0442\u043e\u043c \u043e\u0441\u043e\u0431\u043e\u0439 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u043e\u043d\u044b \u0433. \u0418\u043d\u043d\u043e\u043f\u043e\u043b\u0438\u0441.<\/p>\n<p>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u043e\u0432\u0435\u0434\u0430\u044e \u043e \u0442\u0430\u043a\u043e\u043c \u0437\u0432\u0435\u0440\u0435, \u043a\u0430\u043a NativeScript(\u0434\u0430, \u043e\u043d \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f, \u0434\u0430, \u0441\u0438\u043b\u044c\u043d\u043e).<br \/>  NativeScript \u2014 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438? \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 write once \u2014 use everywhere, \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0443 \u043d\u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c!<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/930\/340\/01c\/93034001ceb448469290459039e8b54e.png\"\/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-283381","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283381"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283381\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}