Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with NativeScript

You're reading from   Getting Started with NativeScript Explore the possibility of building truly native, cross-platform mobile applications using your JavaScript skill—NativeScript!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785888656
Length 168 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Nathanael J. Anderson Nathanael J. Anderson
Author Profile Icon Nathanael J. Anderson
Nathanael J. Anderson
Arrow right icon
View More author details
Toc

How to install a third-party plugin component


This is actually one of the more simple things to do in most cases. We will install three different plugins. The first component is just a simple plugin to vibrate the phone, which we will use for any new messages. Then, we will install a more complex plugin that we will use for real-time communication. Finally, we will install a visual component. By choosing these three examples, I hope to show you a small subset of the available features that you can easily install to gain new functionality for your application.

Installing the vibration plugin

By exploring any of those three plugin sites, you should find a plugin called nativescript-vibrate. This is the plugin we will use to handle the vibration. To install a plugin, you need to be connected to the Internet. Then, all we need to do is simply type nativescript plugin add nativescript-vibrate in the root project directory. This will automatically download and install all the code for the vibration...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime