Android React native touch responder调试-确定touch responder

Android React native touch responder debugging - determine touch responder

是否有好的方法来调试哪个组件是给定触摸的触摸响应器?

从技术上讲,包裹在 中的任何东西都应该响应触摸并调用 onPress。 (在 IOS 中同样的事情没问题) 但是没有调用 onPress。

我的可按文本位于一个listview项中,其中listview是一页可滚动的tabview(感谢Brent Vatne先生) https://github.com/brentvatne/react-native-scrollable-tab-view

我还检查了本机视图不会通过在 ReactRootView 中记录 interceptTouchEvent 窃取触摸(例如 Scrollview 等),可滚动选项卡视图也不会窃取触摸,

可滚动的 tabview 也不会窃取触摸,记录在 ScrollableTabView 的 onStart onMove* onEnd* 方法中。

组件层次结构不是很简单,所以我无法编写一个简单的示例,

欢迎提出调试触摸的任何建议..

只需检查此 issue on scrollable-tab-view. Basically you need to use a ViewPagerAndroid instead of default Animated.View with panResponder. Check this 即可粗略实施。