-
Notifications
You must be signed in to change notification settings - Fork 75
iOS scroll issue #43
Comments
Very strange. Sometimes The question is, why do you get 700 when initialize? It's either a Can you reproduce this problem in |
Hi, i have the same issue :( |
@robertobrogi Hi, I can't reproduce this problem. Can you provide a simple demo to reproduce this problem? |
If there is any new feedback, please open it again |
Thank you for your help. Suppose <InputScrollView topOffset={TopBar.height}>
...
</InputScrollView> |
I am experiencing a strange scroll is on iOS. When focusing an input or the content size changes, the screen scrolls up out of view.
I've debugged this somewhat and I can see the issue is coming from the
_onRef
function. Specifically,y
inmeasureInWindow
returns about 700 meaning that the scroll calculation is always out. If I add a delay to thesetTimeout
, e.g.then
y
becomes 25 and the scrolling works exactly as expected. Im not sure what the purpose of this_onRef
function is and Im not confident that my solution is the best - feels hacky without knowing what this function is supposed to be doing.Perhaps I am doing something wrong somewhere else but I feel like I have exhausted all attempts to resolve this now. Are you able to help?
The text was updated successfully, but these errors were encountered: