score:0

componentWillReceiveProps(nextProps) {
  if (nextProps.show && !this.props.show) {
     //opening
  else if (!nextProps.show && this.props.show) {
     // closing
  }
} 

Related Query

More Query from same tag