Closed truongnguyen3 closed 1 month ago
I have the same issue on Android. I have two screens, A and B, both using KeyboardAwareScrollView. After using navigation.replace from screen A to screen B, the TextInput jumps higher than the status bar. However, when using navigation.navigate, it works well.
@nduyvu1511 which value for windowSoftInputMode
do you have in AndroidManifest.xml
?
Probably different that adjustResize
? If yes, then I guess it's kind of expected behavior. You can read about default hook behavior https://kirillzyusko.github.io/react-native-keyboard-controller/docs/guides/building-own-hook to figure out how to switch input mode in your app. And I guess I need to use hooks that don't modify windowSoftInputMode
in my components 🤔
@nduyvu1511 which value for
windowSoftInputMode
do you have inAndroidManifest.xml
?Probably different that
adjustResize
? If yes, then I guess it's kind of expected behavior. You can read about default hook behavior https://kirillzyusko.github.io/react-native-keyboard-controller/docs/guides/building-own-hook to figure out how to switch input mode in your app. And I guess I need to use hooks that don't modifywindowSoftInputMode
in my components 🤔
Thanks for your answer, I'll take a look at this
@truongnguyen3 regarding your example - I quickly pasted your code sample to the example app and there everything works fine:
But thank you for providing a full reproduction example project 🙏 I'll try to clone it and see where is the problem!
@kirillzyusko Thanks for your time. I will double-check the example app as well.
@truongnguyen3 I fixed the bug in https://github.com/kirillzyusko/react-native-keyboard-controller/pull/501 - can you check if this fix actually fixes the problem for you?
@kirillzyusko It fixed my issue. Thanks.
@kirillzyusko I forgot to answer, I fixed my issue, thanks.
Describe the bug I try to playground react-native-keyboard-controller with KeyboardAwareScrollView component and see this issue, I am not sure it's a bug or I am doing it's wrong.
Code snippet
Repo for reproducing https://github.com/truongnguyen3/rn-keyboard-issue
To Reproduce Steps to reproduce the behavior:
Expected behavior Like iOS behavior, scroll view should scroll to text input sufficient.
Screenshots
https://github.com/kirillzyusko/react-native-keyboard-controller/assets/148203070/4c9fc925-273b-4577-bde5-b5485fee2825
https://github.com/kirillzyusko/react-native-keyboard-controller/assets/148203070/d7566118-d41f-4723-91bd-a4122940f389
Smartphone (please complete the following information):