Javascript – React-native how to move screen up on textinput


I have a login screen created using react-native.

How can I shift my screen up when the user is typing in the textInput?

Do I listen to the onFocus() event and use css styling to change the style of the view?

Best Solution

In 2017 (RN 0.43) there is special component for this: KeyboardAvoidingView