Closed SaegusaMayumi1234 closed 6 months ago
Hello @SaegusaMayumi1234
I think you are referring to https://github.com/kirillzyusko/react-native-keyboard-controller/issues/168
Basically it happen because of https://github.com/kirillzyusko/react-native-keyboard-controller/blob/2e66fa016a29ce33b19712399f88b92e39fdb8c9/src/components/KeyboardAwareScrollView/index.tsx#L328
Which is located in ScrollView
and when keyboard appears -> it increases its own height and all yours element gets pushed...
The ideal solution would be to add such padding simply as an additional padding/inset to ScrollView
. On iOS it's doable with contentInset
property, but on Android there is no alternatives (as far as I know).
The fix with minHeight
may sound as a reasonable one (it will prevent content resize).
But if you have other ideas on how to fix this problem - please share them here 🙌 I'll be glad to hear them 😊
Thank you so much for your reply! But I think I'll just go with pre-calculate the display size before the keyboard open and adding height of the container. I guess you can close this issue for now.
Thank you @SaegusaMayumi1234 for your suggestion!
Yeah, I will close this issue and will post another workaround (with minHeight
) in original issue 🙌
Describe the bug I'm not sure if this is a bug or expected behaviour, but KeyboardAwareScrollView resizing the screen. Is there a way to make it not resizing the screen height? Thank you so much to look into this issue!
Code snippet
Repo for reproducing
To Reproduce Steps to reproduce the behavior:
Expected behavior The "Text" should stay in bottom like image below
Screenshots But the problem it does like below:
Smartphone (please complete the following information):
Additional context I did some nasty fix to add like minHeight: Dimensions.get('window').height * 0.8, in centerContainer style so the container doesn't get resizing