kesha-antonov / react-native-zoom-reanimated

Zoom component on react-native + react-native-reanimated + react-native-gesture-handler
https://www.npmjs.com/package/react-native-zoom-reanimated
MIT License
193 stars 17 forks source link

Not Working on Android #1

Closed taatiq882 closed 1 year ago

taatiq882 commented 2 years ago

On ios its working fine but on android its not working at all..

rkostrab commented 2 years ago

it's working well on android - just set width and height in style of Image object

      ...
      const dimension = useWindowDimensions();
      ...
      <Zoom>
        <Image 
          source={{ uri }}
          resizeMode='contain'
          style={{
            flex: 1,
            width: dimension.width,
            height: dimension.width,
          }}/>
      </Zoom>

But I recommend to use react-native-reanimated-zoom. It's a bit better maintained...

kesha-antonov commented 2 years ago

On ios its working fine but on android its not working at all..

Could you give more details please what's not working for you?

kesha-antonov commented 1 year ago

Uploaded new version. Please try ^1.1.0

OverStackedLab commented 4 months ago

This library still not working on Android except by setting the width and height for the image. I also tried getting it to work on Android inside a Modal and that's also not working. Works great with iOS.

"react-native-zoom-reanimated": "^1.4.5"