如何增加触摸面积?

问题描述 投票:0回答:1

我希望触摸区域在边缘不留填充。标头中的所有图标。我该怎么办?

我尝试为图标添加缩进样式。但是它看起来并不漂亮。但是仍然有一个没有触摸的区域。

Look at here

react-native react-navigation
1个回答
0
投票

您可以通过使用'hitSlop',See document here增加可触摸区域

© www.soinside.com 2019 - 2024. All rights reserved.