react-native-photo-view icon indicating copy to clipboard operation
react-native-photo-view copied to clipboard

Can't pan horizontally, resizeMode does not work iOS

Open markdaws opened this issue 7 years ago • 3 comments

For some reason I can only scroll the image vertically, if I try to scroll horizontally the image seems to be locked.

Is there some setting I need to change, I don't see anything:

My image size is 3000x2000, also resizeMode="contain" does not seem to do anything on iOS, I would also like to be able to show the full image when the image loads.

markdaws avatar Jun 12 '17 22:06 markdaws

To pan horizontally, I had to properly contain my PhotoView component. See here in the examples: https://github.com/alwx/react-native-photo-view/blob/master/example/index.ios.js

Adjusting the stylesheet in container and PhotoView fixed it for me

jmfurlott avatar Jun 26 '17 00:06 jmfurlott

@markdaws Hi, About 【 resizeMode="contain"】 do you have any idea to make it work properly?

yongqianvip avatar Sep 04 '17 07:09 yongqianvip

The maintainer wrote at https://github.com/alwx/react-native-photo-view/issues/98#issuecomment-333112493 :

We currently don't support resizeMode on iOS, only androidScaleType. The situation may change in the future, but what's important is the fact that PhotoView != ImageView and doesn't support most of its properties.

So it seems the situation is that resizeMode on iOS simply isn't currently supported at all.

gnprice avatar Jan 29 '21 01:01 gnprice