-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Improve image preview #903
Copy link
Copy link
Closed
Description
Currently, we're using react-native-image-zoom-viewer as image viewer.
Animations are too junky and it's not well maintained.
We need to refactor and split by OS:
iOS
iOS supports zoom by default on ScrollView. We need to wrap the image in a ScrollView and use maximumZoomScale
Android
It doesn't support zoom in the same way as iOS, so we need to have a separate logic.
react-native-reanimated is really awesome and have an ImagePreview example: https://github.com/kmagiera/react-native-reanimated/blob/master/README.md#100-declarative-gesture-interactions
Reactions are currently unavailable