Home / Companies / LogRocket / Blog / Post Details
Content Deep Dive

Building native mobile apps with NativeScript-Vue

Blog post from LogRocket

Post Details
Company
Date Published
Author
Anjolaoluwa Adebayo-Oyetoro
Word Count
1,963
Language
-
Hacker News Points
-
Summary

JavaScript has evolved beyond being a browser-only language and is now used in a variety of applications, including cross-platform mobile app development. This article outlines how to build mobile apps using Vue.js and NativeScript, a framework that allows developers to use web technologies for native mobile applications without needing to learn native programming languages like Swift, Objective-C, Java, or Kotlin. The process involves setting up necessary tools like Node.js, Yarn, Vue CLI, and NativeScript CLI, and using components such as Page, Image, Label, and ListView to construct the app’s user interface. The tutorial illustrates building a mini-app that fetches and displays characters from the Rick and Morty API, showcasing how to use Axios for HTTP requests and Vue lifecycle hooks to manage data retrieval. Styling is managed through CSS, with options for platform-specific, application-wide, page-specific, and inline styles. The guide also covers how to bundle the app for both iOS and Android platforms, providing a practical demonstration of NativeScript's capabilities in creating native mobile apps from a single JavaScript codebase.