Use expo-image-picker on Web (#847)

This commit is contained in:
Logan Rosen 2023-06-06 10:38:58 -04:00 committed by GitHub
parent a67eaa6ace
commit bdcdb4e4dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 97 deletions

View file

@ -147,7 +147,7 @@ export function UserAvatar({
return
}
const items = await openPicker(store, {
const items = await openPicker({
aspect: [1, 1],
})
const item = items[0]

View file

@ -55,7 +55,7 @@ export function UserBanner({
if (!(await requestPhotoAccessIfNeeded())) {
return
}
const items = await openPicker(store)
const items = await openPicker()
onSelectNewBanner?.(
await openCropper(store, {