NativeScript plugins are npm packages with some added Native functionality. Therefore, finding, installing, and removing NativeScript plugins works a lot like working with the npm packages you might use in your Node.js or frontend web development. You can find all the available NativeScript plugins at the NativeScript Marketplace: https://market.nativescript.org/.
Let's go ahead and add a NativeScript plugin to our application. The plugin we will be adding is called snackbar. We can add the plugin to our application by using the following code:
> npm i nativescript-snackbar
To use our snackbar plugin, we will initialize the Snackbar in our HomeComponent and call it on the setLanguage method:
import { SnackBar } from 'nativescript-snackbar';
export class HomeComponent {
...
setLanguage() ...