Load from librabry image not working please suggest someone


#1

Please check the below code…

 this.camera.getPicture(options).then((imagePath) => {
      this.presentToast(imagePath); 
      if (this.platform.is('android') && sourceType === this.camera.PictureSourceType.PHOTOLIBRARY) {        
        this.filePath.resolveNativePath(imagePath)
          .then(filePath => {                       
          });

      }

in presentToast its printing the file path…

/storage/sdcard/img_2010_2104.jpg

but error giving

runtime error 
uncaught in promise:[object object]