Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set text input above the keyboard when clicked? React-Native

Tags:

react-native

Currently I have a TextInput at the bottom of my screen, when I press the TextInput the keyboard is placed on top of the TextInput, so I can't see what I am typing. Does anyone know how I would be able to show the TextInput component just above the keyboard, when the component is pressed?

like image 217
Sequinex Avatar asked Jan 04 '23 00:01

Sequinex


1 Answers

There's an exact component for this, provided by React Native, KeyboardAvoidingView.

like image 122
Andrew Li Avatar answered Jan 05 '23 16:01

Andrew Li