C
C
Coder3212018-04-25 10:21:46
React Native
Coder321, 2018-04-25 10:21:46

How to prevent tabs from being raised when the keyboard appears?

Hello workers. Understanding React Native ran into a problem when the keyboard appeared. At first I made a header and tabs through flex, but when the keyboard appeared, they shrank, I tried to wrap them in a KeyboardAvoidingView, but something didn’t work out for me. Then I made a fixed height, the compression problem was solved, but the problem with raising the video tabs remained . How to prevent this behavior?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Aleksandrovich, 2018-04-25
@RomReed

Good afternoon. Had the same problem. I decided to use the react-native-android-keyboard-adjust package.
imported
and in componentDidMout put

if (Platform.OS === 'android') {
                                    AndroidKeyboardAdjust.setAdjustPan();
                                }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question