-
Notifications
You must be signed in to change notification settings - Fork 2
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
Any way to avoid this on iOS? #2
Comments
Hello @DeluxeOwl and thank you for reporting this behaviour. I'd be happy to help and have a look, but first could you share the code of your screen ? So that I can understand better the positioning in your scenario. (you could share either the piece of code of the screen you're showing in the example, or a reproduction of the behaviour in the example app) |
This is a promising package. <KeyboardScrollView
keyboardShouldPersistTaps="handled"
contentContainerStyle={{
flexGrow: 1,
justifyContent: 'center'
}}
>
{your stuff...}
</KeyboardScrollView> Try setting some content shorter than the screen height (just one line of text and the TextInput for example). The Related to this, there are other contentContainerStyle configurations which do not work. For example:
combined with short inner content will not scroll to the TextInput. This package will be lit after a few tweaks. Thanks for your work @rlemasquerier ! |
Hi again @rlemasquerier , I've been testing your code. This change will help with the cases reported above:
|
Hello @landabaso thank you for your investigation. I have tried your change, did not notice any regression so I guess we can release this 🙂 - does it solve your issues using flex? |
Yeah, |
@landabaso OK, just released this change then, in 0.2.1. Thank you! |
Screen.Recording.2023-11-12.at.21.05.51.mov
I'm using flexbox to position the button at the end (flex-end, flex: 1). Is there any way to avoid this delayed repositioning of the button on iOS?
The text was updated successfully, but these errors were encountered: