React native 对本地可触摸内容进行反应,不';不能在ScrollView组件中工作

React native 对本地可触摸内容进行反应,不';不能在ScrollView组件中工作,react-native,react-native-android,react-native-ios,react-native-video,react-native-scrollview,React Native,React Native Android,React Native Ios,React Native Video,React Native Scrollview,我花了几个小时试图解决这个问题,但似乎无法回避。我正在使用react原生多维数据集导航库将多维数据集导航合并到我的应用程序中。在立方体导航中,我有从数据库中提取的视频,插入时播放。我已经创建了一个工作暂停功能,但当视频位于CubeNavigation内部时,暂停功能以及屏幕上的所有按钮都停止工作。CubeNavigation使用动画.ScrollView,因此我需要弄清楚如何允许touchable在其中工作 这是主屏幕上的代码 CubeNavigation>

我花了几个小时试图解决这个问题,但似乎无法回避。我正在使用react原生多维数据集导航库将多维数据集导航合并到我的应用程序中。在立方体导航中,我有从数据库中提取的视频,插入时播放。我已经创建了一个工作暂停功能,但当视频位于CubeNavigation内部时,暂停功能以及屏幕上的所有按钮都停止工作。CubeNavigation使用动画.ScrollView,因此我需要弄清楚如何允许touchable在其中工作

这是主屏幕上的代码

CubeNavigation>
            
         {posts.map(
          ({url, owner, description, encores, comments, shares}) => (
      <View style={[styles.container, { backgroundColor: "#ddd" }]}>
        <Videos url={url} owner={owner} description={description} encores={encores} comments={comments} shares={shares}/>
      </View>
        )
      )}
      
        </CubeNavigation>
cubenaviation>
{posts.map(
({url、所有者、描述、安可、评论、共享})=>(
)
)}
这是Videos.js中的代码

<TouchableWithoutFeedback onPress={() => setPlaying(!playing)} >
          <View style={{flex:1}}>
          <Video
            paused={playing}
            style={[styles.backgroundVideo, {width: w, height: h}]}
            source={{uri: url}}
            repeat
            ref={videoRef}
            resizeMode="cover"
            retainOnceInViewPort={false}
          />
          </View>
          </TouchableWithoutFeedback>
setPlaying(!playing)}>