From 770643f7c31bda3565bcc0e1a20125d022ccfab9 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 19 Dec 2024 21:11:03 +0000 Subject: [PATCH] Make it 800 --- src/screens/Onboarding/StepProfile/index.tsx | 2 +- src/view/com/util/UserAvatar.tsx | 2 +- src/view/com/util/UserBanner.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens/Onboarding/StepProfile/index.tsx b/src/screens/Onboarding/StepProfile/index.tsx index 00bd532bde..f8f6ecf4ed 100644 --- a/src/screens/Onboarding/StepProfile/index.tsx +++ b/src/screens/Onboarding/StepProfile/index.tsx @@ -183,7 +183,7 @@ export function StepProfile() { if (!isWeb) { if (isIOS) { // https://github.com/ivpusic/react-native-image-crop-picker/issues/1631 - await new Promise(resolve => setTimeout(resolve, 1000)) + await new Promise(resolve => setTimeout(resolve, 800)) } image = await openCropper({ mediaType: 'photo', diff --git a/src/view/com/util/UserAvatar.tsx b/src/view/com/util/UserAvatar.tsx index 53bab62b2b..db35776afc 100644 --- a/src/view/com/util/UserAvatar.tsx +++ b/src/view/com/util/UserAvatar.tsx @@ -321,7 +321,7 @@ let EditableUserAvatar = ({ try { if (isIOS) { // https://github.com/ivpusic/react-native-image-crop-picker/issues/1631 - await new Promise(resolve => setTimeout(resolve, 1000)) + await new Promise(resolve => setTimeout(resolve, 800)) } const croppedImage = await openCropper({ mediaType: 'photo', diff --git a/src/view/com/util/UserBanner.tsx b/src/view/com/util/UserBanner.tsx index a68efab851..12f52c29ef 100644 --- a/src/view/com/util/UserBanner.tsx +++ b/src/view/com/util/UserBanner.tsx @@ -70,7 +70,7 @@ export function UserBanner({ try { if (isIOS) { // https://github.com/ivpusic/react-native-image-crop-picker/issues/1631 - await new Promise(resolve => setTimeout(resolve, 1000)) + await new Promise(resolve => setTimeout(resolve, 800)) } onSelectNewBanner?.( await openCropper({