diff options
author | dan <dan.abramov@gmail.com> | 2024-12-19 21:47:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 21:47:00 +0000 |
commit | 10981eec50a8e744e4878d2efbb39fa7847ad4d1 (patch) | |
tree | bae5333e4322b4cdbf5a1decda04d361ab8ca21a /src/screens/Onboarding/StepProfile/index.tsx | |
parent | fb920f89d1afd091ab336d8fc8975607787c9a27 (diff) | |
download | voidsky-10981eec50a8e744e4878d2efbb39fa7847ad4d1.tar.zst |
Proper fix for iOS cropper being stuck (#7194)
* Revert "Add iOS hack to fix cropper failing to show (#7191)" This reverts commit 25d20c6395a093a6cfc6aed4d08469f7f128f358. * Proper fix
Diffstat (limited to 'src/screens/Onboarding/StepProfile/index.tsx')
-rw-r--r-- | src/screens/Onboarding/StepProfile/index.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/screens/Onboarding/StepProfile/index.tsx b/src/screens/Onboarding/StepProfile/index.tsx index f8f6ecf4e..73472ec33 100644 --- a/src/screens/Onboarding/StepProfile/index.tsx +++ b/src/screens/Onboarding/StepProfile/index.tsx @@ -15,7 +15,7 @@ import {openCropper} from '#/lib/media/picker' import {getDataUriSize} from '#/lib/media/util' import {useRequestNotificationsPermission} from '#/lib/notifications/notifications' import {logEvent, useGate} from '#/lib/statsig/statsig' -import {isIOS, isNative, isWeb} from '#/platform/detection' +import {isNative, isWeb} from '#/platform/detection' import { DescriptionText, OnboardingControls, @@ -181,10 +181,6 @@ export function StepProfile() { if (!image) return if (!isWeb) { - if (isIOS) { - // https://github.com/ivpusic/react-native-image-crop-picker/issues/1631 - await new Promise(resolve => setTimeout(resolve, 800)) - } image = await openCropper({ mediaType: 'photo', cropperCircleOverlay: true, |