Skip to content

TypeError: Cannot read property 'DarkVibrant' of undefined #41

@max-pro

Description

@max-pro

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

No one assigned

    Labels

    help wantedAny PR´s are welcomequestionQuestion/Discussion based issuevueVue related issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions