I have a single page with a scrollView and a lot of TextInputs, like :
<ScrollView>
<TextInput/>
<TextInput/>
<TextInput/>
<TextInput/>
...
</ScrollView>
The problem is : when the Keyboard shows, the Textinput is covered by the keyboard
Half-Solution found on Ios, that doesn't work with Android is to use a .measure() called on the Textinput which receive focus (OnFocus) And then scroll to the textInput
As you may now, .measure is used like :
element.measure( (fixed_x, fixed_y, width, height, page_x, page_y) => {callback} );
But fixed_x and y returns 0 everytime with Android (I've already tried https://github.com/facebook/react-native/issues/12966 with opacity and collapsable false)
I also tried this : React native: get current scroll position of scrollview
to get the scrollView current scroll and add what's missing to make the TextInput visible. No success (doesn't work ios/android)
https://github.com/Andr3wHur5t/react-native-keyboard-spacer is also not relevant because it creates a component which size changes, but doesn't help in scrolling to the correct TextInput
And last : https://github.com/APSL/react-native-keyboard-aware-scroll-view is absolutely perfect with ios, but very sadly don't work with android too
Do someone have a lead?