alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
815 stars 434 forks source link

Zoom on Android overflows outside of parent view #183

Closed BenjErgizerBunny closed 5 years ago

BenjErgizerBunny commented 5 years ago

I love the library, I'm just having this one little issue!

When zooming in on Android, the image overflows outside of the parent view and renders in front of all other components as opposed to rendering only the zoomed in portion of the image only within the parent view on iOS. Does anyone know how to make Android behave like iOS?

My code and two screenshots are attached.

` render(){ return(

console.log("Image loaded!")} style={styles.map} >
)

}`

android issue scale 1 android issue zoomed in

BenjErgizerBunny commented 5 years ago

Calling overflow: “hidden” on parent fixed the issue.