在包装ListView时,TouchableWithoutFeedBack不响应

在包装ListView时,TouchableWithoutFeedBack不响应,listview,react-native,react-native-android,react-native-listview,Listview,React Native,React Native Android,React Native Listview,我想检测用户何时在ListView上释放触控,以便能够在此时将我的单元格居中。在iOS中,我将我的ListView包装在一个无反馈的触摸屏中,它工作得很好。当用户停止触摸时,会调用onPress。但在Android中,onPress不被调用 我不能将我的所有ListView行都放在Touchables中,因为用户将无法触摸它并继续滚动 这是我的密码: render() { return ( <TouchableWithoutFeedback onPress={() =>

我想检测用户何时在ListView上释放触控,以便能够在此时将我的单元格居中。在iOS中,我将我的ListView包装在一个无反馈的触摸屏中,它工作得很好。当用户停止触摸时,会调用
onPress
。但在Android中,
onPress
不被调用

我不能将我的所有ListView行都放在Touchables中,因为用户将无法触摸它并继续滚动

这是我的密码:

render() {
   return (
    <TouchableWithoutFeedback onPress={() => this.release()}>
            <ListView
             ref="dateStripe"
             bounces={true}
             style={{paddingRight: (ScreenWidth / 2) - (ScreenWidth / 5 / 2), paddingLeft: (ScreenWidth / 2) - (ScreenWidth / 5 / 2)}}
             scrollEventThrottle={1}
             horizontal={true}
             onScroll={this.onScroll}
             showsHorizontalScrollIndicator={false}
             dataSource={this.state.dataSource}
             renderRow={this._renderItem.bind(this)}
           />
        </TouchableWithoutFeedback>
    )
}
render(){
返回(
this.release()}>
)
}