[英]React Native Android Keyboard custom height
我不確定您是否可以在 android 中執行此操作,幾乎所有鍵盤的操作都相同,但是您可以嘗試一下 RedrawKeyboard,這是一個鍵盤自定義應用程序,它可能會起作用。
也許使用 KeyboardAvoidingView 組件可以幫助您避開整個鍵盤。
嘗試這樣的事情:
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.