hhunaid / react-native-image-crop-tools

Native-ish Image Crop Tools for react native
171 stars 58 forks source link

Is it possible to initialize the coordinates of the guide? #69

Open cmpdvd opened 2 years ago

cmpdvd commented 2 years ago

Is it possible to initialize the coordinates x, y of the guide? Currently we can change the aspectRatio property on the fly, but not x and y, the top left coordinates of the guide.


<CropView 
            ref={cropViewRef}
            keepAspectRatio = {item.keepAspectRatio}
            aspectRatio={item.aspectRatio}
            x={item.x} // <--
            y={item.y} // <--
 />

I would like to be able to display a cropped area on an image previously saved. Thanks.