Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6290

Image is getting cropped in edges while using with Draggable component in React Native

$
0
0

I am using react-native-draggable for the drag and drop of an image in an android application. The drag and drop work perfectly but the image size is getting cropped out.

For the vertical images some part of the top and bottom is getting cropped and for horizontal photos left and right side of the image getting cropped out. I have tried changing the render size and position but it's still getting cropped.

I really appreciate it if anyone can help on this issue.

Sharing the following snippet for the drag and drop

<Draggable          imageSource={route.params.url}          renderSize={230}          x={130}          y={90} />

Viewing all articles
Browse latest Browse all 6290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>