onBackAndroid = () => {
const {visible} = this.state
if(visible){
this.onClose()
}else{
this.props.dispatch(NavigationActions.back())
}
// 阻止事件冒泡
return true
};
onBackAndroid = () => {
const {visible} = this.state
if(visible){
this.onClose()
}else{
this.props.dispatch(NavigationActions.back())
}
// 阻止事件冒泡
return true
};
本文标题:addEventListener
本文链接:https://www.haomeiwen.com/subject/qvismqtx.html
网友评论