update crop tool, use new package name (#9642)

This commit is contained in:
Samuel Newman
2026-01-06 18:29:37 +02:00
committed by GitHub
parent 4f6ff6fc73
commit 493bd6dcf6
6 changed files with 15 additions and 11 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ import {
getInfoAsync,
readDirectoryAsync,
} from 'expo-file-system/legacy'
import ExpoImageCropTool, {type OpenCropperOptions} from 'expo-image-crop-tool'
import ExpoImageCropTool, {
type OpenCropperOptions,
} from '@bsky.app/expo-image-crop-tool'
import {compressIfNeeded} from './manip'
import {type PickerImage} from './picker.shared'
+3 -1
View File
@@ -1,5 +1,7 @@
import ExpoImageCropTool, {type OpenCropperOptions} from 'expo-image-crop-tool'
import {type ImagePickerOptions, launchCameraAsync} from 'expo-image-picker'
import ExpoImageCropTool, {
type OpenCropperOptions,
} from '@bsky.app/expo-image-crop-tool'
import {t} from '@lingui/macro'
export {
+1 -1
View File
@@ -1,4 +1,4 @@
import {type OpenCropperOptions} from 'expo-image-crop-tool'
import {type OpenCropperOptions} from '@bsky.app/expo-image-crop-tool'
import {type PickerImage} from './picker.shared'
import {type CameraOpts} from './types'
+1 -1
View File
@@ -64,7 +64,7 @@ export function isErrorMaybeAppPasswordPermissions(e: unknown) {
/**
* Intended to capture "User cancelled" or "Crop cancelled" errors
* that we often get from expo modules such expo-image-crop-tool
* that we often get from expo modules such @bsky.app/expo-image-crop-tool
*
* The exact name has changed in the past so let's just see if the string
* contains "cancel"