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?
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?