https://linear.app/comm/issue/ENG-8150/convert-fullscreenviewmodal-to-reanimated-2-syntax
Migrate backdropOpacityUpdate function. In this function there are a couple of things mixed together going on:
- depending on the current position of the image calculate backdrop opacity (progressiveOpacity) variable to give a hint to the user that you're closing the modal - the farer the image from the center the more transparent the backdrop
- if pinch gesture is active or the image is zoomed in then ignore the above and run animation with timing on backdrop opacity to opacity = 1
- if we move fast / far enough (shouldGoBack) animate image position with decay (so the image moves with inertia) and close the modal
Also I needed some minor things like migrating close method and adding withDecay method to reanimated types.
Depends on D14305