gpt4 book ai didi

react-native - 当键盘出现在 native react 时,为什么我的按钮会上升?按钮 View 位置是绝对的?

转载 作者:行者123 更新时间:2023-12-02 18:01:29 27 4
gpt4 key购买 nike

这是我的代码:

enter image description here

enter image description here

这是在 android 中。

enter image description here

最佳答案

在文件夹 Android> app> src> ma​​in> AndroidManifest.xml

<activity
-------------
android:windowSoftInputMode="adjustResize"
-------------
</activity>

更改为:

<activity
-------------
android:windowSoftInputMode="adjustPan"
-------------
</activity>

关于react-native - 当键盘出现在 native react 时,为什么我的按钮会上升?按钮 View 位置是绝对的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74274069/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com