Skip to content

Improve image preview #903

@diegolmello

Description

@diegolmello

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions