Instagram like zoom in NativeScript


#1

How can I achieve zoom functionality something like Instagram photo zoom?

I use something like this:

this.item.animate({
    translate: { x: 0, y: 0 },
    scale: { x: 2, y: 2 },
    curve: "easeOut",
    duration: 300
}).then(function () {});

But it zooms in its own place. (Height and width is constant)

Also there isn’t any pinchEnd or pinchMove events.