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…
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…
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…
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 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, you'll learn how to create a bottom navigation bar with a cradle like effect that can be either dragged or clicked. The final result will look something like this.. Cradle Tab Bar Getting Started To start with, we begin with a…
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…
In this tutorial, you'll learn how to create a bottom navigation bar with a sliding color animation. This tutorial will be focused more on creating the custom tab bar rather than how to use the component. Result Getting Started Lets begin with a…
Hey Everybody! I recently wrote a post on automated unit testing with NativeScript using Azure Pipelines. After some requests I am now writing a more detailed iOS post. :) This post will be specifically for iOS. If you'd like to see how to setup…
Here is another way you could implement animations in your NativeScript applications. If you are using NativeScript Angular, you have the ability to use Angular's animation system in your app. This should be identical to the one you would use in a…
Displaying images that are behind a protected API is a very common use case when building web and mobile applications, thus creating the need for a clean and easy way to be able to display these types of images using Nativescript's component. The…
In this article, I want to discuss some ways of passing complex data between routed components in NativeScript applications based on the Angular framework. There are several ways to pass data in Angular applications and I just want to go through some…
RTL (right-to-left) and LTR (left-to-right) layout support is pretty common for apps catering to an international audience that supports multiple languages. However, building layouts that supports both orientation can be a challenge without the right…
A while ago I finished one more project with NativeScript. During the period of work with this framework I've accumulated some amount of solutions which are quite steadily used in almost every project I had worked on. Each of them allows to quickly…
In mobile app development, one of the most effective engagement tools is notifications. Notifications allow you to increase app retention and improve user experience. Notifications might even be a core requirement for apps such as social media and…