[React Native] Textinput의 multiline={true}일 때 KeyboardAvoidingView 제대로 작동안하는 문제

HBJ·2024년 2월 13일
0

Textinput에 multiline을 허용할 경우,
scrollEnabled를 False로 해야만 keyboardAvoidingView가 잘 작동하고, scrollEnabled를 True로 한 경우, keyboardAvoidingView가 잘 작동하지 않는다.

RN 사용자들 사이에서도 거의 6년 째 논의되고 있으나, 업데이트 되지는 않는 모양.
https://github.com/facebook/react-native/issues/16826

결국, 현재로서는 아래의 외부 라이브러리 사용이 최선인 듯 싶다.
https://github.com/APSL/react-native-keyboard-aware-scroll-view

0개의 댓글