about summary refs log tree commit diff
path: root/src/view/com/util/UserBanner.tsx
diff options
context:
space:
mode:
authorOllie H <renahlee@outlook.com>2023-05-16 15:38:32 -0700
committerGitHub <noreply@github.com>2023-05-16 17:38:32 -0500
commit5f66adc9a656b79b76986395a73def9eed3d9776 (patch)
tree5c42de343a9cbe06bf382784f82c4e6930bbbe77 /src/view/com/util/UserBanner.tsx
parentd5bec4ff37fb3423b8f083dd9fe95c066b4cf90e (diff)
downloadvoidsky-5f66adc9a656b79b76986395a73def9eed3d9776.tar.zst
Replace image picker with expo-image-picker (#649)
* Replace image picker with expo-image-picker

* Fix cropper & picker on web

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/com/util/UserBanner.tsx')
-rw-r--r--src/view/com/util/UserBanner.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/view/com/util/UserBanner.tsx b/src/view/com/util/UserBanner.tsx
index 51cfbccbb..6e08be505 100644
--- a/src/view/com/util/UserBanner.tsx
+++ b/src/view/com/util/UserBanner.tsx
@@ -55,10 +55,8 @@ export function UserBanner({
         if (!(await requestPhotoAccessIfNeeded())) {
           return
         }
-        const items = await openPicker(store, {
-          mediaType: 'photo',
-          multiple: false,
-        })
+        const items = await openPicker(store)
+
         onSelectNewBanner?.(
           await openCropper(store, {
             mediaType: 'photo',