简体   繁体   中英

React Native Android Keyboard custom height

Android Keyboard shows with suggestion area and it hides the icons below textbox . How can I move the window a little bit more in Android? In iOS I can customise the height to be moved up. Can I do this in Android? And if this is not possible, how can I disable keyboard suggestion area? I have attached two screenshots.

Without Keyboard

不带键盘

With Keyboard showing

Keybaord 隐藏文本框下方的图标

我不确定您是否可以在 android 中执行此操作,几乎所有键盘的操作都相同,但是您可以尝试一下 RedrawKeyboard,这是一个键盘自定义应用程序,它可能会起作用。

Maybe using the KeyboardAvoidingView component can help you avoid the whole keyboard.

try something like this:

import { Platform, KeyboardAvoidingView } from 'react-native';

<KeyboardAvoidingView
  behavior={Platform.select({ ios: 'padding' })}
/>
  ....rest of the code
</KeyboardAvoidingView>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM