A popular approach in JavaScript APIs these days is to pass a string that matches a property name as a parameter to some function. These are sometimes called ‘magic strings’ and they are very code smelly. In this article and video we will fix this…
Do you manage your application state using the Flux pattern (now better knows as Redux, I suppose)? Well you should check it out since it will make your application state handling life much easier. @ngrx is a Redux inspired set of libraries for…
Have you ever written platform specific code in NativeScript, whether it was JavaScript or CSS? Did it look like a giant -- statement? Or maybe you even separated out your platform specific code into separate functions, but you still needed…
Close your eyes for a moment and imagine yourself creating a modal dialog for a web application. Ok, I know, there are more exciting things to imagine, but roll with it for a moment. Got it? Now imagine creating a modal dialog in a NativeScript…
Working on a team that has given me the experience to create production NativeScript and Angular applications, I’ve been in the trenches and have seen real world scenarios that someone might come across while building an app. Hi, I’m Sean Perkins…
By this time, you likely have already had the experience of adding font icons to your web or mobile application. You can add nice graphics to spice up your interfaces and you can style the graphics with CSS, since they are just fonts. Libraries like…
How do we secure our enterprise mobile applications? We’re happy to announce that we now have a video course that shows how to do just that. Securing enterprise applications has always been a challenge, and single sign-on used to be the holy grail…
We’re ready to create our new NativeScript app, but we just need to know how to do it. Many people that are coming to NativeScript after being web developers or from other frameworks like Cordova are initially just trying to be as productive as…
This video tutorial walks you through using a brand new feature in NativeScript version 4.1 - css gradients! CSS gradients have been on the NativeScript styling wish list for quite some time, and they have finally arrived! In this tutorial, I'll show…
This is another video tutorial in the series that looks into amazing new features in NativeScript version 4.1. This time I'm digging into the new event and trying it out in Core and Angular. Tired of having to use to get native UI element…
Mobile apps! They are ubiquitous in today’s world. JavaScript developers have been successfully using hybrid approaches to creating mobile apps for years. But the pace of mobile UX and the performance demands have skyrocketed, and hybrid apps, built…
This is another time-saving tip for NativeScript developers. If you aren't using NativeScript Core and NativeScript Angular snippets in Visual Studio Code, then you are missing out. In this short video tutorial on snippets, I show you which…
In this series of written and video tutorials, I'll progressively improve the progress bar (see what I did there?) by adding JavaScript animation to its movement, and then using RxJS to animate it. TJ VanToll wrote an excellent post on building a…
After over a year of planning and waiting for a super stable version, it’s my pleasure to announce that together with the stable version 2 release of NativeScript-Vue, we've released a beginner level video course called NativeScript-Vue Introduction…
During development, I prefer using a local backend that I quickly spin up along with my NativeScript apps. Why? It's easy, it's offline, it gives me more control, and it allows me to reason about my app in a more realistic way during development…
Converting fetch to HttpClient to make API calls is pretty straightforward. But sometimes it's not done correctly, especially when abusing the async pipe. It may be beneficial to use HttpClient instead of the good old global fetch API that lives in…
In this issue of I Script Native, Gokul, a NativeScripting student, asked how to detect and respond to URLs being loaded in a WebView component in NativeScript with Angular. As it happens, I've also recently been using these techniques myself when…
Let's set up a NativeScript development environment on a Windows machine, from scratch! When starting out with NativeScript development, I find that many folks initially struggle with the setup and installation of all the required software. This has…
You've built a mobile app. But is it secure? There are many resources out there for learning how to do great things with NativeScript, whether it's UI, or animations, or performance. These are all important things to know. There is one are that's…
The mysterious async/await combination has been permeating JavaScriptland the for a bit now. You can use it in NativeScript too, but you need this little trick to get it working. Async/await works for either NativeScript Core, NativeScript with…
The time that we've all been waiting for has finally come. Ok, maybe the time that I've been waiting for... Big News NativeScript-Vue finally got TypeScript support! Here is the pull request by Manuel Saelices that made it possible. This news is…
Using class components in NativeScript-Vue with TypeScript? You need to know these five things. Warning: strong personal opinions follow, but there is no swearing ;) Right Direction Class Component Scaffolding Five Things About Class Components in…
I'm excited to announce my latest project over at NativeScripting – NativeScript Vue and Vuex! This course provides an overvue of Vuex and looks at how we can apply it to our NativeScript Vue projects. What's Inside Throughout the course, we'll look…
Typically we bind the ListView and Repeater components to a JavaScript array in NativeScript, but it's not always clear when you should use a regular JavaScript array or ObservableArray. What is so observable about it anyway? That's what we're going…
How do you update a value field when using the RadDataForm in NativeScript? At the time of writing, you can't do it using any JavaScript API. In this short NativeScript tutorial, I'll show you a workaround. TL;DR If you prefer video, I cover how to…
In this NativeScript tutorial, we'll create an animated material design type of ripple effect on your buttons using JavaScript and CSS, and no external iOS or Android libraries needed. We use buttons for the demo, but you can apply the effect on…
NativeScript Vue Manual Routing Function Typing This tutorial will show you how to avoid TypeScript compilation errors when using NativeScript-Vue routing functions along with your TypeScript class-based components. TL;DR If you prefer a video…
NativeScript Angular keeps navigated components alive on a stack. This is great for performance since the framework doesn't have to work as hard to recreate the components that you might return to. However, sometimes you might need manual control…
Whether you're using NativeScript Core, NativeScript Vue, or NativeScript Angular, some core widget tricks are the same, including using a to separate out the sections of text in your Labels and Buttons. In this short NativeScript tutorial, we'll…
The verticalAlignment property doesn't work with Label text in Android in your NativeScript apps. So how do you vertically center text in a NativeScript Label on Android? This short tutorial will show you a workaround that will accomplish this. TL;DR…
Want to make your TextFields look more or less the same on iOS and Android? This tutorial will show you how to get rid of the bottom border of a TextField in a NativeScript Android application. TL;DR Here's a video for you if you prefer watching the…
Besides all the different events that you can listen for in NativeScript views, did you know that you can also create custom events? That's what we'll be doing in this tutorial! TL;DR Here's a video for you if you prefer a more visual tutorial…
By popular demand, in this tutorial, we'll be creating an animated bottom sheet that works on iOS and Android. TL;DR If you prefer watching a video of the tutorial, then here you go: Introduction This article is the third part in a series of…
In this tutorial, I'll show you how to get those clean line shadows that you can fully control in intensity, size, and color, just by using CSS. And they will look pretty much the same on iOS and Android. TL;DR If you prefer going through a video…
Have you always dreamed of being able to create shapes in NativeScript UIs? In this NativeScript tutorial, you'll learn 2 ways of creating shapes in NativeScript applications. TL;DR Here's a video for you if you prefer watching the tutorial…
In this tutorial, we'll be creating a Floating Action Button (FAB) in a NativeScript Core application using just CSS and no third-party libraries. TL;DR Check out the video below if you prefer a more visual way of learning. Introduction About two…
Do you need to include social authentication in your mobile apps? In this NativeScript tutorial, we're using OAuth2 and adding Google login to a simple app. TL;DR Here's a video version of this tutorial on my YouTube channel. You can find a lot more…
In this NativeScript tutorial, I'll show you five native iOS properties you can alter to create any kind of shadow in your iOS NativeScript apps. TL;DR If you prefer a video of the tutorial, here it is: Introduction In NativeScript 6, elevation for…
Are you already learning NativeScript or about to join the community and start learning this framework that lets you build native iOS and Android app with JavaScript? Here are some seven useful things you should know. TL;DR Here's a video version of…