From 6d035e1f7fb4ec8e041c061bde393b8f82e59ed3 Mon Sep 17 00:00:00 2001 From: amaliadwiy Date: Tue, 29 Jul 2025 17:34:21 +0800 Subject: [PATCH] fix : ios Deskripsi: - title home align left - nama file pada view banner - modal crash pada group dan jabatan No Issues --- app/(application)/banner/index.tsx | 13 +++++------ app/(application)/group/index.tsx | 8 ++++--- app/(application)/home.tsx | 2 +- app/(application)/position/index.tsx | 22 +++++++++++-------- components/banner/headerBannerList.tsx | 2 +- components/borderBottomItem.tsx | 2 +- components/group/headerGroupList.tsx | 6 ++--- .../position/headerRightPositionList.tsx | 18 ++++++++++----- 8 files changed, 42 insertions(+), 31 deletions(-) diff --git a/app/(application)/banner/index.tsx b/app/(application)/banner/index.tsx index 52148a3..dcbf335 100644 --- a/app/(application)/banner/index.tsx +++ b/app/(application)/banner/index.tsx @@ -23,7 +23,7 @@ import { useDispatch, useSelector } from "react-redux" type Props = { id: string - name: string + title: string extension: string image: string } @@ -72,7 +72,7 @@ export default function BannerList() { setModal(false) setLoadingOpen(true) let remoteUrl = 'https://wibu-storage.wibudev.com/api/files/' + selectFile?.image; - const fileName = selectFile?.name + '.' + selectFile?.extension; + const fileName = selectFile?.title + '.' + selectFile?.extension; let localPath = `${FileSystem.documentDirectory}/${fileName}`; const mimeType = mime.lookup(fileName) @@ -81,7 +81,6 @@ export default function BannerList() { try { if (Platform.OS == 'android') { - // open with android intent await startActivityAsync( 'android.intent.action.VIEW', { @@ -90,9 +89,6 @@ export default function BannerList() { type: mimeType as string, } ); - // or - // Sharing.shareAsync(localPath); - } else if (Platform.OS == 'ios') { Sharing.shareAsync(localPath); } @@ -116,13 +112,14 @@ export default function BannerList() { }} /> - } + style={[{height:'100%'}]} > {entities.map((index: any, key: number) => ( @@ -146,7 +143,7 @@ export default function BannerList() { - + setModal(false)} title="Menu"> } diff --git a/app/(application)/group/index.tsx b/app/(application)/group/index.tsx index be71d43..61c6666 100644 --- a/app/(application)/group/index.tsx +++ b/app/(application)/group/index.tsx @@ -176,7 +176,7 @@ export default function Index() { - + setModal(false)} title={titleChoose}> } @@ -195,13 +195,15 @@ export default function Index() { title="Edit" onPress={() => { setModal(false) - setVisibleEdit(true) + setTimeout(() => { + setVisibleEdit(true) + }, 600); }} /> - + setVisibleEdit(false)} title="Edit Lembaga Desa"> diff --git a/app/(application)/home.tsx b/app/(application)/home.tsx index 91e0c62..a568b21 100644 --- a/app/(application)/home.tsx +++ b/app/(application)/home.tsx @@ -50,7 +50,7 @@ export default function Home() { /> - + diff --git a/app/(application)/position/index.tsx b/app/(application)/position/index.tsx index 79e7452..e6521e4 100644 --- a/app/(application)/position/index.tsx +++ b/app/(application)/position/index.tsx @@ -131,12 +131,14 @@ export default function Index() { return ( - - }> + + }> - + setModal(false)} title={chooseData.name}> } @@ -213,14 +215,16 @@ export default function Index() { title="Edit" onPress={() => { setModal(false) - setVisibleEdit(true) + setTimeout(() => { + setVisibleEdit(true) + }, 600) }} /> - + setVisibleEdit(false)} title="Edit Jabatan"> { setVisible(true) }} /> - + setVisible(false)} title="Menu"> } diff --git a/components/borderBottomItem.tsx b/components/borderBottomItem.tsx index a615606..92eb927 100644 --- a/components/borderBottomItem.tsx +++ b/components/borderBottomItem.tsx @@ -32,7 +32,7 @@ export default function BorderBottomItem({ title, subtitle, icon, desc, onPress, {icon} - {title} + {title} { subtitle && typeof subtitle == "string" diff --git a/components/group/headerGroupList.tsx b/components/group/headerGroupList.tsx index 67175e2..fb443fd 100644 --- a/components/group/headerGroupList.tsx +++ b/components/group/headerGroupList.tsx @@ -59,7 +59,7 @@ export default function HeaderRightGroupList() { return ( <> { setVisible(true) }} /> - + setVisible(false)} title="Menu"> } @@ -70,7 +70,7 @@ export default function HeaderRightGroupList() { () => { setVisibleTambah(true) }, - 100, + 600, ); }} @@ -78,7 +78,7 @@ export default function HeaderRightGroupList() { - + setVisibleTambah(false)} title="Tambah Lembaga Desa"> { setVisible(false) - setVisibleTambah(true) + setTimeout(() => { + setVisibleTambah(true) + }, 600) }} /> { @@ -112,14 +114,16 @@ export default function HeaderRightPositionList() { title="Filter" onPress={() => { setVisible(false) - setFilter(true) + setTimeout(() => { + setFilter(true) + }, 600) }} /> } - + setVisibleTambah(false)} title="Tambah Jabatan"> { @@ -131,7 +135,9 @@ export default function HeaderRightPositionList() { required onPress={() => { setVisibleTambah(false) - setSelect(true) + setTimeout(() => { + setSelect(true) + }, 600) }} error={error.idGroup} errorText="Lembaga Desa harus diisi" @@ -166,7 +172,9 @@ export default function HeaderRightPositionList() { validationForm(value.val, 'idGroup') setChoose(value) setSelect(false) - setVisibleTambah(true) + setTimeout(() => { + setVisibleTambah(true) + }, 600) }} title="Lembaga Desa" open={isSelect}