title: nativescript image-picker not working
body: <p>I'm using the plugin image-picker for nativescript and I copied the example code to see how it works and to adapt it to my code. But the code doesn't work. When I tap the button it's supposed that the screen gallery from my device should be opened, but nothing happen when I tap the button. </p>
  
  <p>The code below is how I implements this.</p>
  
  <p><strong>album_list.component.ts</strong></p>
  
  <pre><code>import { Component } from '@angular/core';
  import { RouterExtensions } from 'nativescript-angular/router';
  
  //image picker
  var imagepicker = require("nativescript-imagepicker");
  
  
  @Component({
      selector:'album_list',
      moduleId: module.id,
      templateUrl: "album_list.component.html",
  
  })
  
  export class AlbumListComponent{
  
      constructor(private routerExt: RouterExtensions ){}
  
  
      ngOnInit() {
  
      }
  
      onSelectMultipleTap() {
          console.log('Im in');
  
          function selectImages() {
              var context = imagepicker.create({
                  mode: "multiple"
              });
  
              context
                  .authorize()
                  .then(function() {
                      return context.present();
                  })
                  .then(function(selection) {
                      console.log("Selection done:");
                      selection.forEach(function(selected) {
                          console.log(" - " + selected.uri);
                      });
                  }).catch(function (e) {
                      console.log(e);
                  });
          }
  
      }
  
  
  }
  </code></pre>
  
  <p><strong>album_list.component.html</strong></p>
  
  <pre><code>&lt;StackLayout&gt;
          &lt;Button text="Pick Multiple Images" (tap)="onSelectMultipleTap()" &gt; &lt;/Button&gt;
  &lt;/StackLayout&gt;
  </code></pre>
  
  <p>As I said, when I tap the button in the html the log from the function onSelectMultipleTap appears, but nothing else.</p>
  
  <p>Thanks!!</p>