숨참고 개발다이브

[React Native/RN] 안드로이드 TextInput 키보드 사라짐, 키보드 자동으로 내려감 오류 수정 본문

개발/React & React Native

[React Native/RN] 안드로이드 TextInput 키보드 사라짐, 키보드 자동으로 내려감 오류 수정

사라 Sarah 2022. 10. 6. 11:05
728x90


TextInput에 focus를 주면 키보드가 올라왔다가 바로 사라지는 현상이 발생했다.
열심히 구글링을 해본 결과 한 링크를 발견할 수 있었다.

"TextInput closes automatically when opened on android"

https://github.com/facebook/react-native/issues/33164

TextInput closes automatically when opened on android · Issue #33164 · facebook/react-native

Description Hi there, I switched laptops and cloned the repository of my project, did a quick yarn install and looks like it was a big difference from the one on the main branch but I didn't bo...

github.com


나와 같은 문제를 가지고있는 사람을 발견, 답변 중 이를 해결한 사람이 stackoverflow 링크를 달아주었다.


https://stackoverflow.com/questions/71227463/react-native-textinput-closes-automatically-when-opened-on-android

React Native TextInput closes automatically when opened on android

I switched laptops and cloned the repository of my project, did a quick yarn install and looks like it was a big difference from the one on the main branch but I didn't bother since maybe it's just

stackoverflow.com



바로 "react-native-screens"의 버전 문제였다.
3.10.2버전의 밑으로 재설치를 해주면 된다고한다.

npm uninstall react-native-screens npm install react-native-screens@3.10.0

uninstall 후 3.10.0 버전으로 재설치를 해주었다.

300x250
Comments