Detect the position of an element in the screen

Please provide the following:

  1. SDK Version:44.0.0
  2. Platforms(Android/iOS/web/all):all

I built a custom <AutoComplete /> component, and when I start typing in the TextInput I display a list of matching items below the component, with position absolute (so that it does not pushes down the elements below the AutoComplete).

The problem is that when my AutoComplete is at the top of the screen it’s all good. When the AutoComplete is at the bottom of the screen, the list is hidden behind the keyboard.

How can I display the list below, or above, the AutoComplete based on its position in the screen?

Top

Bottom:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.