這是我的代碼:


這是在安卓中。

uj5u.com熱心網友回復:
在檔案夾Android > app > src > main > AndroidManifest.xml
<activity
-------------
android:windowSoftInputMode="adjustResize"
-------------
</activity>
改成 :
<activity
-------------
android:windowSoftInputMode="adjustPan"
-------------
</activity>
uj5u.com熱心網友回復:
基本上,您的鍵盤不會避開您的視圖或組件。所以你必須將你的組件包裝在
<KeyboardAvoidingView>
//your component
</KeyboardAvoidingView>
另外,您可以使用鍵盤道具避免查看
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/525051.html
標籤:反应式
