简体   繁体   English

React Native Android 键盘自定义高度

[英]React Native Android Keyboard custom height

Android Keyboard shows with suggestion area and it hides the icons below textbox . Android 键盘显示建议区域,并隐藏textbox下方的图标。 How can I move the window a little bit more in Android?如何在 Android 中稍微移动窗口? In iOS I can customise the height to be moved up.iOS我可以自定义要向上移动的高度。 Can I do this in Android?我可以在 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.也许使用 KeyboardAvoidingView 组件可以帮助您避开整个键盘。

try something like this:尝试这样的事情:

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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