K
K
Kirill Shekhovtsov2020-05-17 15:09:29
Android
Kirill Shekhovtsov, 2020-05-17 15:09:29

How to remove Screen layout shift on Android when using the GBoard keyboard?

I use React-Native, Expo-kit and, according to the project's condition, I can't eject the configuration.
I noticed that on an Android device with GBoard, the entire layout is shifted into a small window when the keyboard is opened. How to remove such behavior?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Shekhovtsov, 2020-05-17
@Ksedline

This behavior is not reproduced if the component

<StatusBar backgroundColor="rgba(30,174,199,1)" translucent={true} hidden={true} />
hidden={true}
I came up with this solution, in the styles for the main View:
minHeight: Math.round(Dimensions.get('window').height)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question