refactor: restore old image cropper

This commit is contained in:
Mary
2024-05-08 11:20:32 +07:00
parent f6515fe199
commit c67043738d
4 changed files with 145 additions and 4 deletions
-4
View File
@@ -17,10 +17,6 @@ export async function openCropper(opts: CropperOptions): Promise<RNImage> {
unstable__openModal({
name: 'crop-image',
uri: opts.path,
dimensions:
opts.height && opts.width
? {width: opts.width, height: opts.height}
: undefined,
onSelect: (img?: RNImage) => {
if (img) {
resolve(img)