From 8687be10e88e5356f9105338989c69578fd02cbc Mon Sep 17 00:00:00 2001 From: richarjiang Date: Wed, 12 Nov 2025 10:54:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20=E4=BC=98=E5=8C=96=E8=8D=AF?= =?UTF-8?q?=E5=93=81=E6=B7=BB=E5=8A=A0=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E9=80=89=E6=8B=A9=E5=92=8C=E6=98=BE=E7=A4=BA=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/medications/add-medication.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/medications/add-medication.tsx b/app/medications/add-medication.tsx index 979d8f1..59457f6 100644 --- a/app/medications/add-medication.tsx +++ b/app/medications/add-medication.tsx @@ -432,8 +432,7 @@ export default function AddMedicationScreen() { } const result = await ImagePicker.launchImageLibraryAsync({ - allowsEditing: true, - mediaTypes: ImagePicker.MediaTypeOptions.Images, + mediaTypes: ['images'], quality: 0.9, }); @@ -651,7 +650,7 @@ export default function AddMedicationScreen() { > {photoPreview ? ( <> - + @@ -1370,7 +1369,7 @@ const styles = StyleSheet.create({ photoCard: { borderWidth: 1, borderRadius: 20, - height: 180, + height: 240, overflow: 'hidden', justifyContent: 'center', },