我想从饼图中删除可触摸属性,因为它仅在单击弹出窗口时显示。我希望它能在屏幕上弹出时起作用,我们不需要单击它即可显示饼图。
render () {
const {selectedIndex, locationX, locationY, evtX, evtY, inPie, selectedAngle, pieSize, angles} = this.state
const {size} = this.props
return (
<View collapsable={false}>
<TouchableWithoutFeedback onPress={(e) => {
// const {locationX, locationY} = e.nativeEvent
// console.log(locationX, locationY)
// this.setState({locationX: locationX, locationY: locationY})
this.handleEventOld(e)
}}>
<View ref='test' style={StyleSheet.flatten([styles.container, {
width: size,
height: size
}])}>
{this.drawT()}
{this.drawInfoT(this.state.selectedIndex)}
</View>
</TouchableWithoutFeedback>
</View>
)
}
}
只想在出现弹出窗口时显示饼图