I need to retrieve the position on the screen of a TextInput from the onFocus event. I haven't found documentation about this, my problem is that I cannot find out the element from the event triggered on focus. Here the code:
_handleOnFocus(event) {
console(event.nativeEvent.target.layout.y); // where is the y coordinate?
}
The callback is inserted here:
<TextInput onFocus={
onFocus={event => {this._handleOnFocus(event);}}} ... />