refactor: bring back dimensions

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