_renderRow(){
return(
<VIew>
<TouchableOpacity ref={touchImage => this.touchImage =touchImage} onPress={this.}>
<Image />//在renderRow里面我们无法获取Image的ref所以我们将ref设为他的父容器TouchableOpacity
</TouchableOpacity>
</View>
)
}
touchEvent(event){
//获取TouchOpacity的ref,以及TouchOpacity的measure
event._targetInst.measure((x, y, width, height, locationX, locationY)=>{})
}
这样我们就可以很轻松的获取Listview上的cell里面的各种组件坐标了