I have the following TextView:
<TextView id="textFieldBody" hint="Some hint" text="{{ }}" editable="true" class="TextField" returnKeyType="done" />
I'm trying to correctly implement it so that:
- when the user presses "Done", the keyboard disappears
- when the user touches outside (blur) of the TextView, the keyboard disappears
- maybe when focus on the TextView, scroll up so that the rest of the view doesn't disappear behind the keyboard? (not sure yet about this one)
It's unclear to me how to achieve that. What kind of backend code do I need to implement?
Ideally, I'm looking for a solution that works for both iOS and Android.