AutoCompleteTextView in react native compatible with both iOS and Android

After searching a lot for available Libraries and module, I came up with my own implementation of custom AutoCompleteTextView.
I have created a gist for AutoCompleteTextView.
The idea behind:

*There is one input field on the focus of this field keyboard appears.

*When keyboard appears we calculate space from top to input field and from input field till the start of keypad area.

*Will display an absolute positioned scroll view Suggestion area on top or bottom of input field based on the space calculation above.

*When keyboard goes away we hide the suggestion area.

Suggestions are welcome on how to improve this thing.

Suggestions appearing on top of the input field Suggestions appearing below the input field and above keyboard