{"id":892,"date":"2016-06-24T11:23:49","date_gmt":"2016-06-24T09:23:49","guid":{"rendered":"http:\/\/blog.thecodecampus.de\/?p=892"},"modified":"2023-12-20T20:28:12","modified_gmt":"2023-12-20T19:28:12","slug":"js-goes-mobile-native-apps-javascript","status":"publish","type":"post","link":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/","title":{"rendered":"JS goes mobile &#8211; Native Apps with JavaScript"},"content":{"rendered":"<p>Have you ever heard of &#8216;<em>Mobile Native JavaScript<\/em>&#8216;? &#8211; No? It&#8217;s about writing native Apps with a native look &amp; feel, but purely in JavaScript and the web technologies you love.<\/p>\n<h2>The past<\/h2>\n<p>We as developers had to make the hard decision, about writing a new app either native for each platforms or a hybrid app for all the platforms at once.\u00a0As always there are some drawbacks:<\/p>\n<ul>\n<li>native Apps\n<ul>\n<li>the developer\u00a0need to know how every platform works<\/li>\n<li>its hard for a web-developer<\/li>\n<li>we have more technologies, so it&#8217;s harder to fix bugs<\/li>\n<\/ul>\n<\/li>\n<li>hybrid Apps\n<ul>\n<li>it&#8217;s rendered in a WebView (we have to take care that the WebView works on every device)<\/li>\n<li>no native look &amp; feel<\/li>\n<li>no native UX (User Experience)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Mobile Native JavaScript<\/h2>\n<p>In early 2015 Facebook and Telerik both contributed a new style of writing apps to the open source community, the apps\u00a0are written in JavaScript, but the create native components.\u00a0The apps Look &amp; Feel like native apps, they behave like native apps and you get all \u00a0the native UX.<\/p>\n<p>The frameworks don&#8217;t use a WebView like in hybrid apps. In short, they start a JavaScript Engine (like V8) in the background which generates native Java \/ Objectiv-C code at runtime.<\/p>\n<p>They offer a subset of native components on all supported platforms like buttons, labels, etc. Another benefit is,\u00a0it&#8217;s possible to directly access the native platform code and make native function calls to each device. So you don&#8217;t need an abstraction layer like Cordova to access native hardware.<\/p>\n<p>At the moment there are two open source frameworks for the job:<\/p>\n<ul>\n<li>React Native from Facebook:\n<ul>\n<li>Android 4.1 &amp; iOS 7<\/li>\n<li>cool if you already know React<\/li>\n<li>&#8220;learn once, write anywhere&#8221; -&gt; write a app for each platform, but with one technology<\/li>\n<li>they use JSX to write JavaScript<\/li>\n<li>Layouts are generated with flexbox<\/li>\n<li>no out of the box native Styling<\/li>\n<\/ul>\n<\/li>\n<li>NativeScript from Telerik:\n<ul>\n<li>Android 4.2 &amp; iOS 7.1 (&amp; Windows announced)<\/li>\n<li>can work with pure JavaScript, HTML, CSS<\/li>\n<li>TypeScript and Angular 2 is\u00a0supported<\/li>\n<li>know Layouts (GridLayout, StackLayout, DockLayout, etc.)<\/li>\n<li>out of the box native Styling<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Example with NativeScript<\/h2>\n<p>I made a example NativeScript app with TypeScript and Angular 2 to show, how it could work.<\/p>\n<p><iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/dXuM-78EQhk\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>It&#8217;s a small app which\u00a0shows some conferences\u00a0where we&#8217;re giving talks this year. You can select a conference, a talk and than rate this talk. The example\u00a0code can be found on <a href=\"https:\/\/github.com\/fvonberg\/SpeakerRating-NativeScript\" target=\"_blank\" rel=\"noopener\">github<\/a>. The only difference between Angular 2 web-app, is the router and the HTML-Tags and CSS-Syntax.<\/p>\n<h2>The future<\/h2>\n<p>Mobile Native JavaScript is a nice alternative to native development, with the advantages of performance and native UX over hybrid apps. NativeScript works perfectly together with Angular 2 and gives you the chance to reuse your &#8220;services&#8221; from your web-apps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever heard of &#8216;Mobile Native JavaScript&#8216;? &#8211; No? It&#8217;s about writing native Apps with a native look &amp; feel, but purely in JavaScript and the web technologies you love. The past We as developers had to make the hard decision, about writing a new app either native for each platforms or a hybrid [&#8230;]<br \/><a class=\"meta-big\" href=\"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/\"> READ MORE<\/a><\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,2,63,60],"tags":[],"class_list":["post-892","post","type-post","status-publish","format-standard","hentry","category-angular","category-javascript","category-nativescript","category-typescript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JS goes mobile - Native Apps with JavaScript - Web Development Blog<\/title>\n<meta name=\"description\" content=\"JavaScript goes mobile! Elevate apps with native power. Unleash JavaScript for seamless, high-performance mobile experiences. Explore now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JS goes mobile - Native Apps with JavaScript - Web Development Blog\" \/>\n<meta property=\"og:description\" content=\"JavaScript goes mobile! Elevate apps with native power. Unleash JavaScript for seamless, high-performance mobile experiences. Explore now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Development tips and tricks - theCodeCampus Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-24T09:23:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-20T19:28:12+00:00\" \/>\n<meta name=\"author\" content=\"theCodeCampus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"theCodeCampus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/js-goes-mobile-native-apps-javascript\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/js-goes-mobile-native-apps-javascript\\\/\"},\"author\":{\"name\":\"theCodeCampus\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/person\\\/276bbda2f8da73154f22fb652201cfbc\"},\"headline\":\"JS goes mobile &#8211; Native Apps with JavaScript\",\"datePublished\":\"2016-06-24T09:23:49+00:00\",\"dateModified\":\"2023-12-20T19:28:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/js-goes-mobile-native-apps-javascript\\\/\"},\"wordCount\":469,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#organization\"},\"articleSection\":[\"Angular\",\"JavaScript\",\"NativeScript\",\"TypeScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/js-goes-mobile-native-apps-javascript\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/js-goes-mobile-native-apps-javascript\\\/\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/js-goes-mobile-native-apps-javascript\\\/\",\"name\":\"JS goes mobile - Native Apps with JavaScript - Web Development Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#website\"},\"datePublished\":\"2016-06-24T09:23:49+00:00\",\"dateModified\":\"2023-12-20T19:28:12+00:00\",\"description\":\"JavaScript goes mobile! Elevate apps with native power. Unleash JavaScript for seamless, high-performance mobile experiences. Explore now!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/js-goes-mobile-native-apps-javascript\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/js-goes-mobile-native-apps-javascript\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/js-goes-mobile-native-apps-javascript\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JS goes mobile &#8211; Native Apps with JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/\",\"name\":\"Web Development tips and tricks - theCodeCampus Blog\",\"description\":\"Tips, tricks, and experiences about developing web and mobile applications with Angular, TypeScript, and Testing.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#organization\",\"name\":\"theCodeCampus\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch.jpg\",\"contentUrl\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch.jpg\",\"width\":156,\"height\":156,\"caption\":\"theCodeCampus\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/person\\\/276bbda2f8da73154f22fb652201cfbc\",\"name\":\"theCodeCampus\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg\",\"caption\":\"theCodeCampus\"},\"description\":\"Our knowledge is not simply gained through reading - it is trained, tested and constantly being expanded. Because first and foremost, we are all developers at W11K. The know-how that we acquire here as developers, consultants and information architects flows immediately into our training courses and articles for theCodeCampus.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/showcase\\\/thecodecampus\\\/\"],\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JS goes mobile - Native Apps with JavaScript - Web Development Blog","description":"JavaScript goes mobile! Elevate apps with native power. Unleash JavaScript for seamless, high-performance mobile experiences. Explore now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/","og_locale":"en_US","og_type":"article","og_title":"JS goes mobile - Native Apps with JavaScript - Web Development Blog","og_description":"JavaScript goes mobile! Elevate apps with native power. Unleash JavaScript for seamless, high-performance mobile experiences. Explore now!","og_url":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/","og_site_name":"Web Development tips and tricks - theCodeCampus Blog","article_published_time":"2016-06-24T09:23:49+00:00","article_modified_time":"2023-12-20T19:28:12+00:00","author":"theCodeCampus","twitter_card":"summary_large_image","twitter_misc":{"Written by":"theCodeCampus","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/#article","isPartOf":{"@id":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/"},"author":{"name":"theCodeCampus","@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/person\/276bbda2f8da73154f22fb652201cfbc"},"headline":"JS goes mobile &#8211; Native Apps with JavaScript","datePublished":"2016-06-24T09:23:49+00:00","dateModified":"2023-12-20T19:28:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/"},"wordCount":469,"commentCount":2,"publisher":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#organization"},"articleSection":["Angular","JavaScript","NativeScript","TypeScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/","url":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/","name":"JS goes mobile - Native Apps with JavaScript - Web Development Blog","isPartOf":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#website"},"datePublished":"2016-06-24T09:23:49+00:00","dateModified":"2023-12-20T19:28:12+00:00","description":"JavaScript goes mobile! Elevate apps with native power. Unleash JavaScript for seamless, high-performance mobile experiences. Explore now!","breadcrumb":{"@id":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodecampus.de\/blog\/js-goes-mobile-native-apps-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodecampus.de\/blog\/"},{"@type":"ListItem","position":2,"name":"JS goes mobile &#8211; Native Apps with JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/www.thecodecampus.de\/blog\/#website","url":"https:\/\/www.thecodecampus.de\/blog\/","name":"Web Development tips and tricks - theCodeCampus Blog","description":"Tips, tricks, and experiences about developing web and mobile applications with Angular, TypeScript, and Testing.","publisher":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thecodecampus.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thecodecampus.de\/blog\/#organization","name":"theCodeCampus","url":"https:\/\/www.thecodecampus.de\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch.jpg","contentUrl":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch.jpg","width":156,"height":156,"caption":"theCodeCampus"},"image":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/person\/276bbda2f8da73154f22fb652201cfbc","name":"theCodeCampus","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg","url":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg","contentUrl":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg","caption":"theCodeCampus"},"description":"Our knowledge is not simply gained through reading - it is trained, tested and constantly being expanded. Because first and foremost, we are all developers at W11K. The know-how that we acquire here as developers, consultants and information architects flows immediately into our training courses and articles for theCodeCampus.","sameAs":["https:\/\/www.linkedin.com\/showcase\/thecodecampus\/"],"url":"https:\/\/www.thecodecampus.de\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts\/892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/comments?post=892"}],"version-history":[{"count":13,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts\/892\/revisions"}],"predecessor-version":[{"id":2732,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts\/892\/revisions\/2732"}],"wp:attachment":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/media?parent=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/categories?post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/tags?post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}