[RN] React Native 鍵盤管理 在Android TextInput遮蓋,上移等問題解決辦法


React Native 鍵盤管理 在Android TextInput遮蓋,上移等問題解決辦法

 

解決辦法:
打開android工程,在AndroidManifest.xml中配置如下:

<activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
        android:windowSoftInputMode="stateAlwaysHidden|adjustPan">

 

其中,紅色部分為修改的值!

 

參考:

https://blog.csdn.net/u011690583/article/details/53808773

https://www.jianshu.com/p/950cc880c449

 

本博客地址: wukong1688

本文原文地址:https://www.cnblogs.com/wukong1688/p/10953977.html

轉載請著名出處!謝謝~~


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM