-
Notifications
You must be signed in to change notification settings - Fork 642
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
scrollToFocusedInput does not work/ exists anymore on the props #553
Comments
I sort of have this working. The issue is it only puts the input to the top of screen and I need it in the middle.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using:
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native": "0.67.4"
Replicated with: iOS and Android devices.
Code:
Problem:
Readme suggested to use:
Here, the currentInputScroll.current no longer has props inside it, and looking at Stack Overflow, i found the example to use
which does not work either....
Console logging currentInputScroll.current inside the scrollToInput callback gives:
The problem is that the scroll works when you click the first text input, but when you hit the second text input, it doesn't go to that text input and rather jumps the scroll to the first one... I console logged the findNodeHandle(event.target) and that seem to give correct number (in terms of increasing as you click the text input below... Any idea why?
The text was updated successfully, but these errors were encountered: