React Native:标签栏按钮“OnPress”在标签栏范围之外不起作用

问题描述

enter image description here

如您所见,从附图中:

1 箭头:标签栏按钮在此范围之外不起作用

2 箭头:标签栏按钮确​​实有效,因为它在标签栏的范围内。

导航容器中的代码

 <BottomTab.Screen
    options={{
      //   tabBarIcon: ({}) => <VerifyFloatingButton />,tabBarOnPress: () => {
        null;
      },tabBarButton: ({}) => <VerifyButton size={30} />,}}
    name="asafaas"
    component={NullButton}
  />

有什么方法可以让按钮在标签栏范围之外运行?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)