Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript PanResponder如何成为主要用户_Javascript_React Native - Fatal编程技术网

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
将无法访问,并且永远无法授予

是否有办法访问第二个并终止第一个

谢谢