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
AvoidSoftInputView breaks with screen swipe #54
Comments
I think you should not use |
I deleted
Now it completely hides navigation header. How I can fix that? Simulator.Screen.Recording.-.iPhone.13.-.2022-04-01.at.21.13.04.mp4And anyway bug still present. Even if I try to disable on transition start:
|
Hi @nucleartux
That's default iOS behavior, keyboard is still fully visible, even though app receives events from
I don't know if it can be prevented, you can try with writing your own logic for applying padding to your container based on |
@nucleartux issue is fixed and available in version 2.4.2 🎉 |
@mateusz1913 hello Simulator.Screen.Recording.-.iPhone.13.-.2022-04-03.at.11.55.37.mov |
On the provided video, after you cancel swipe, can you scroll to the very bottom (so the input and all messages are visible as it was before the swipe)? If not, please create reproduction repo and link it in issue's description, so I will be able to investigate and reopen this issue |
It's not possible. Simulator.Screen.Recording.-.iPhone.13.-.2022-04-03.at.12.19.28.movI will try to make repro demo. |
I'm in process of repro but found another bug(?). Can you help me investigate it? Simulator.Screen.Recording.-.iPhone.13.-.2022-04-03.at.12.58.32.mp4 |
Ok I get it. If you add So maybe it's two separate bugs, i'm not sure. |
I downloaded your repo and can't reproduce behavior from video Simulator.Screen.Recording.-.iPhone.13.-.2022-04-03.at.14.35.28.mp4I added nice Swift package ShowTime, so you will see where I make touches |
How it is even possible? I tried delete node_modules and pods and reinstall everything again but bug still exists. |
Which simulator, do you use? |
Simulator. iPhone 13, iOS 15.4 |
Weird. I will try on real device |
I tried on real device (iPhone X, latest iOS) - same bug. |
Ok, I reproduced on real device. Will investigate it and probably create separate ticket. In the meantime, please prepare that chat repro and I will reopen this ticket |
I will track second one here: #59 |
I made separate branch for this issue https://github.com/nucleartux/TestProject/tree/issue-54 Simulator.Screen.Recording.-.iPhone.13.-.2022-04-03.at.17.47.27.mp4 |
@nucleartux Can you try following patch?
I think it should resolve both issues |
Tested on repro and real project, works fine! |
But one question. It works fine with It's just question, issue is solved anyway. |
I'll check that, probably it shouldn't work like that |
Ah, ok, I misunderstood your question. So I guess that |
Fix is available in v2.4.3 |
Environment
Library version: 2.4.1
OS version: iPhone 13, iOS 15.4
"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.6.1",
Affected platforms
Current behavior
Simulator.Screen.Recording.-.iPhone.13.-.2022-04-01.at.20.47.27.mp4
Expected behavior
Keyboard avoid view
Reproduction
Simplified code:
And I have related question: now, when I swipe screen keyboard still present but keyboard avoid view smoothly disappears (and content scrolls down). How I can prevent this behavior?
The text was updated successfully, but these errors were encountered: