You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Is there a way to display image, fitting it to the width of the screen but WITHOUT cropping the picture ?
'cover' center & fit the picture well but it crop it
'center' + scale={2} work only when image already in CACHE ( see above )
'contain' + scale={2} work only when image already in CACHE
For example if the picture is {width : 500, height : 1000} and the parent View is of the size {width : 400, height : 500}. i want to fit it to width but can zoom in or out and see all the original image.
BUG of SCALE :
the code above render strangly :
<PhotoView
source={'http://...........'} // not a local ressource
scale={2}
resizeMode="center"
minimumZoomScale={1}
maximumZoomScale={10}
style={{flex: 1,width: null,height: null}}
// same for style={{ flex: 1 }}
/>
(left image) the first time i open the view the scale param is ignored, the picture is in the middle not zoomed at all.
(right image) The second time i open the same view with same image ( so it's in the cache ), the scale param work well
Any tips ?
Thanks
The text was updated successfully, but these errors were encountered:
Hello,
Is there a way to display image, fitting it to the width of the screen but WITHOUT cropping the picture ?
For example if the picture is
{width : 500, height : 1000}
and the parent View is of the size{width : 400, height : 500}
. i want to fit it to width but can zoom in or out and see all the original image.BUG of SCALE :
the code above render strangly :
(left image) the first time i open the view the scale param is ignored, the picture is in the middle not zoomed at all.
(right image) The second time i open the same view with same image ( so it's in the cache ), the scale param work well
Any tips ?
Thanks
The text was updated successfully, but these errors were encountered: