Photo_view: Callbacks

Created on 14 Jan 2019  路  3Comments  路  Source: fireslime/photo_view

Right now PhotoView is very short on callbacks. I'm sure that with the exposition of the internal state through the controller, most of the internal events will be accessible. But I'm sure that some callbacks would make things easier. React native's implementation of PhotoView has a lot of them.
So I want to hear from you which callbacks you would like to be included in PhotoView's options?

Priority help wanted question

Most helpful comment

Please also consider adding

  • onPanStart
    When user starts dragging to move the photo (usually by tap-hold-move)

  • onPanFinish
    When user finishes dragging to move the photo

and

  • onScaling
    When user has changd the scale of the photo (and continues changing)

  • onPanning
    When user has moved the photo (and continues moving)

Thanks.

All 3 comments

I will start with some I have on mind:

  • onDoubleTap
    When user double-taps PhotoView, before subsequent scale state changes
  • onScalestart
    When a scale gesture or animation starts

  • onscalefinish
    when a scale gesture or animation finishes

Please also consider adding

  • onPanStart
    When user starts dragging to move the photo (usually by tap-hold-move)

  • onPanFinish
    When user finishes dragging to move the photo

and

  • onScaling
    When user has changd the scale of the photo (and continues changing)

  • onPanning
    When user has moved the photo (and continues moving)

Thanks.

image loadErrorCallback

Was this page helpful?
0 / 5 - 0 ratings