-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
help wantedAny PR´s are welcomeAny PR´s are welcomequestionQuestion/Discussion based issueQuestion/Discussion based issuevueVue related issueVue related issue
Description
Hello,
I'm using nativescript-vue here is my code
import { PhotoViewer, PhotoViewerOptions, PaletteType, NYTPhotoItem } from "nativescript-photoviewer";
try{
let images = args.object.images.split(',');
let photoviewerOptions = {
startIndex: 0,
android: {
paletteType: PaletteType.DarkVibrant,
showAlbum: false
}
};
photoViewer.showGallery(myImages, photoviewerOptions);
}
catch(e){
console.log(e);
}
also try using
const PhotoViewer = require('nativescript-photoviewer').PhotoViewer;
const PhotoViewerOptions = require('nativescript-photoviewer').PhotoViewerOptions;
const PaletteType = require('nativescript-photoviewer').PaletteType;
const NYTPhotoItem = require('nativescript-photoviewer').NYTPhotoItem;
Error: TypeError: Cannot read property 'DarkVibrant' of undefined
Metadata
Metadata
Assignees
Labels
help wantedAny PR´s are welcomeAny PR´s are welcomequestionQuestion/Discussion based issueQuestion/Discussion based issuevueVue related issueVue related issue