I have a TextInput with multiline set to true. I am scrolling to the input on focus with:
scrollResponder.scrollResponderScrollNativeHandleToKeyboard(
React.findNodeHandle(this.refs.myInput),
0,
true
);
However when the multiline TextInput expands the text will be hidden beneath the keyboard. I only want to scroll down when the cursor/current text is not visible. So I can't just run the code above on text change as it would scroll the view even if the current cursor/current text is visible (like editing on the first line).
Is there any way to get the cursor/current text position on screen? Or is there any other way to do what I'm trying to?
Currently: