Skip to content

Avoid Keyboard for whole View (dynamic offset) #119

Answered by mateusz1913
saaymeen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @saaymeen, I moved this to the Discussions section, because it's not an issue, but rather couple of questions, which I'll try to answer below.

how can I make the offset dynamic form multiple inputs?

If I get it correctly, you want to wrap each of form's inputs in its separate AvoidSoftInputView wrapper and give different avoidOffset prop for each of those wrappers

With the example above, I have two red boxes, a green area for CTA and blue padding. I always want the blue area to be above the Keyboard. My initial hope was that wrapping the whole View in AvoidSoftInputView will do this, but it doesn't. If I add an offset, I will always see varying height of the container depending on w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mateusz1913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #116 on October 10, 2022 15:25.