gpt4 book ai didi

react-native - 我正在使用带有加号按钮的底部选项卡但是加号按钮在只有 android 中的 native react 中的一半区域不可点击?

转载 作者:行者123 更新时间:2023-12-04 11:33:43 24 4
gpt4 key购买 nike

enter image description here
我在 React Native 中使用 @react-navigation/bottom-tabs。而且我需要该区域上方的加号按钮,所以我能够实现它,但是在 Android 上加号图标的一半区域在 android 中不可点击。但在 IOS 中它运行良好,任何人都有答案。

最佳答案

请像这样在按钮上使用 hitSlop 属性来增加点击区域:

hitSlop={{top: 20, bottom: 20, left: 50, right: 50}}

关于react-native - 我正在使用带有加号按钮的底部选项卡但是加号按钮在只有 android 中的 native react 中的一半区域不可点击?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64429128/

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