[FIX] 검사 중 뒤로가기 및 하단 탭 이동 방지#71
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #68
개요
링크 검사 중 화면에서 사용자가 상단 뒤로가기, Android 시스템 뒤로가기, 하단 탭바 이동으로 검사 화면을 벗어나지 못하도록 처리했습니다.
기존
app/(tabs)/(home)/scanning.tsx는 하단 탭 구조 안의 홈 스택 화면으로 열리기 때문에, 검사 polling이 진행 중이어도 헤더 뒤로가기나 Android 시스템 뒤로가기, 하단 탭바 버튼을 통해 다른 화면으로 이동할 수 있었습니다.이번 작업에서는 검사 애니메이션이 표시되는 진행 중 상태를
!hasError기준으로 정리하고, 해당 상태에서는 화면 이탈 경로를 모두 차단했습니다. 상단 뒤로가기 버튼은 숨기지 않고 기존AppIcon의 disabled 상태를 사용해 비활성 아이콘으로 표시되도록 했습니다.애뮬레이터에서 확인해본 결과 시스템 뒤로가기, 헤더 뒤로가기, 하단 탭바 모두 비활성화 되어 뒤로가지 않는 것을 확인하였습니다.
주요 구현 내용
!hasError기준으로 정리scanning인지 판별하는 helper 추가BottomTabBar의 기존disabledprop으로홈,링크 추가,폴더탭 비활성화다시 검사,돌아가기버튼 흐름 유지파일별 역할
app/(tabs)/(home)/scanning.tsx: 검사 진행 중 헤더 뒤로가기 disabled 표시, iOS gesture 차단, Android BackHandler 차단 처리app/(tabs)/_layout.tsx: nested route state를 확인해scanning화면 여부를 판단하고 하단 탭 이동 및 입력 비활성화 처리해결한 이슈 목록
app/(tabs)/(home)/scanning.tsx의 현재 Stack header 뒤로가기 동작 확인홈,링크 추가,폴더버튼을 검사 중에는 비활성화scanning인지 확인할 수 있도록 처리BottomTabBar와BottomTabItem의 기존disabledprop을 활용해 탭 이동 차단다시 검사,돌아가기버튼 동작 정책 유지체크 사항
router.replace()흐름 유지참고사항
scanning일 때만 비활성화되며, 결과 화면에서는 기존 탭 이동 정책을 유지합니다.Screenshots or Video