The keyboard plugin is no longer causing errors–which is great–but I think its probably not quite on point for my needs. I have a standard textview which works fine for the first, say, 7 lines of the textview or so. Once it goes beyond seven lines, the keyboard continues to cover the bottom text of the view when the user is typing.
I expect the solution is not too complicated. Something like:
- put a stack layout under the textview
- get the height of the keyboard when it comes up.
- give the dummy stack layout under the textview the same height as the keyboard when the keyboard comes up. This should push the textview up on the screen so that it is above the keyboard.
I have seen a reference to this method online (for example, see Nativescript issue #2907 on github–referencing the number here not the link bc this discourse site is not allowing me to post the link).
However, the code people use in the link employs a few methods I am not familiar with and I am not quite getting it too work. I am unfamiliar with (i) how to get the height of the keyboard when it pops up on iOS, and then (2) how to dynamically give a stack layout a particular height (the height of the keyboard).
If anyone has a full working example, including relevant imports, I would appreciate it.