Skip to content

Does it possible to use this plugin with NativeScript-Vue?Β #21

@asologor

Description

@asologor

Any examples?

What I've tried:

import Vue from 'nativescript-vue';
import { ImageZoom } from 'nativescript-image-zoom';

Vue.component('ImageZoom', ImageZoom);
<template>
  <Page class="page" backgroundSpanUnderStatusBar="true" @loaded="loadPhoto" backgroundColor="#222222">
    <GridLayout rows="*">
      <StackLayout row="0" verticalAlign="center">
        <ImageZoom src="res://testimg" maxZoom="3" minZoom="1" width="400" height="400" backgroundColor="#77d94b" />
      </StackLayout>
    </GridLayout>
  </Page>
</template>

It does not crash, but it renders nothing.
Works fine if I change <ImageZoom ... /> to just <Image ... /> with the same attrs.

P.S.: it doesn't crash on iOS, but on Android the app crashes on startup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions