react-native-transformable-image icon indicating copy to clipboard operation
react-native-transformable-image copied to clipboard

Added automaticInitialCoverScale

Open maraujop opened this issue 9 years ago • 0 comments

In this case I needed my images to behave like if their resizeMode was set to cover and to be honest, if you agree, instead of adding a new prop like automaticInitialCoverScale I think it would be better to make resizeMode work, as that's the one people would expect to change in the original Image component and they already understand it.

When this prop is activated the image is rendered like if resizeMode was set to cover.

This PR also allows to use enableLimits from this other PR https://github.com/ldn0x7dc/react-native-view-transformer/pull/5 and it also relies on initialScale prop from that PR to work. I could make them non dependent if you want me to.

Maybe it would be nice to pass <ViewTransformer {...this.props}> too, so that it would not be necessary to make PRs dependent.

Thanks, cheers Miguel

maraujop avatar Aug 31 '16 08:08 maraujop