nativescript-open-youtube
by Bruno Ziiê | v1.2.3
Open Youtube app
npm i --save nativescript-open-youtube

NativeScript Open Youtube

Installation

From the command prompt go to your app's root folder and execute:

tns plugin add nativescript-open-youtube

Usage

JavaScript
// require the plugin
var Youtube = require("nativescript-open-youtube").Youtube;

// instantiate the plugin
var youtube = new Youtube();

youtube.open('VypbgNAsqos');
TypeScript
// require the plugin
import { Youtube } from "nativescript-open-youtube";

// instantiate the plugin
let youtube = new Youtube();

youtube.open('VypbgNAsqos');