(node, isAppearing)
| 31 | } |
| 32 | |
| 33 | onEntering(node, isAppearing) { |
| 34 | // getting this variable triggers a reflow |
| 35 | const { offsetHeight } = node; |
| 36 | this.setState({ startAnimation: true }); |
| 37 | this.props.onEntering(node, isAppearing); |
| 38 | return offsetHeight; |
| 39 | } |
| 40 | |
| 41 | onExit(node) { |
| 42 | this.setState({ startAnimation: false }); |