From 521ec8e044e58633530e1864e7abc6e22554d7d3 Mon Sep 17 00:00:00 2001 From: hailey Date: Tue, 6 May 2025 10:54:08 -0700 Subject: swap out cropper library (#8327) * mostly implement * type errors * unused import * rm comment * stop accidentally deleting the image while compressing * upgrade * type fixes * upgrade, remove timeout * bump * rm mock * bump --------- Co-authored-by: Samuel Newman --- src/screens/Onboarding/StepProfile/index.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/screens/Onboarding/StepProfile/index.tsx') diff --git a/src/screens/Onboarding/StepProfile/index.tsx b/src/screens/Onboarding/StepProfile/index.tsx index 73472ec33..0e738f145 100644 --- a/src/screens/Onboarding/StepProfile/index.tsx +++ b/src/screens/Onboarding/StepProfile/index.tsx @@ -182,11 +182,9 @@ export function StepProfile() { if (!isWeb) { image = await openCropper({ - mediaType: 'photo', - cropperCircleOverlay: true, - height: 1000, - width: 1000, - path: image.path, + imageUri: image.path, + shape: 'circle', + aspectRatio: 1 / 1, }) } image = await compressIfNeeded(image, 1000000) -- cgit 1.4.1