Javascript PanResponder如何成为主要用户
我在两个不同的视图中有两个Javascript PanResponder如何成为主要用户,javascript,react-native,Javascript,React Native,我在两个不同的视图中有两个PanResponder <Animated.View style={leftRightStyle} {...this.panLeftRightResponder.panHandlers} > <Animated.View style={bottomTopStyle} {...this.panBottomTopResponder.panHandlers} > {thi
PanResponder
<Animated.View
style={leftRightStyle}
{...this.panLeftRightResponder.panHandlers}
>
<Animated.View
style={bottomTopStyle}
{...this.panBottomTopResponder.panHandlers}
>
{this.props.children}
</Animated.View>
</Animated.View>
{this.props.children}
第一个PanResponder
应检测到左右滑动,而第二个PanResponder
应检测到从下到上滑动
我的问题是,当第一个被授予时,第二个PanResponder
将无法访问,并且永远无法授予
是否有办法访问第二个并终止第一个
谢谢