Add iOS hack to fix cropper failing to show (#7191)
* Add iOS hack to fix cropper failing to show * Make it 800
This commit is contained in:
@@ -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 {isNative, isWeb} from '#/platform/detection'
|
||||
import {isIOS, isNative, isWeb} from '#/platform/detection'
|
||||
import {
|
||||
DescriptionText,
|
||||
OnboardingControls,
|
||||
@@ -181,6 +181,10 @@ 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,
|
||||
|
||||
Reference in New Issue
Block a user