Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(login): 로그인 창에서 키보드 깜빡이는 문제 해결 #140

Merged
merged 1 commit into from
Oct 1, 2024

Commits on Oct 1, 2024

  1. fix(login): 로그인 창에서 키보드 깜빡이는 문제 해결

    개요
    
    - 로그인 창에서 이메일을 치면, 키보드의 자동 암호 부분이 깜빡 거리
    - 조사결과, iPhone 14 + iOS 17에 한정해서 발생하는 에러
    
    수정 사항
    
    - 원인은 iPhone 14 + iOS 17에 있다는 조사결과
    - 이를 해결하기 위해, 기존에 이메일 값이 계속 변경되어 재렌더링 되는
    부분과 겹쳐서 더 심해보였음
    - Controlled 컴포넌트를 사용하면서, email 값 관련 재렌더링이 계속 반복되면서 더
    심해보였음.
    - 따라서, useRef를 통해, 이메일란을 Uncontrolled Component으로 바꾼다
    - 추가로 autoCorrect=false로 두어 키보드의 수정을 최소화한다.
    
    참고
    
    - facebook/react-native#39411
    
    - https://dori-coding.tistory.com/entry/React-%EC%A0%9C%EC%96%B4-%EC%BB%B4%ED%8F%AC%EB%84%8C%ED%8A%B8Controlled-Component%EC%99%80-%EB%B9%84%EC%A0%9C%EC%96%B4-%EC%BB%B4%ED%8F%AC%EB%84%8C%ED%8A%B8Uncontrolled-Component
    seungholee-dev committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    7c7351a View commit details
    Browse the repository at this point in the history