Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
개요 - 로그인 창에서 이메일을 치면, 키보드의 자동 암호 부분이 깜빡 거리 - 조사결과, 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
- Loading branch information