()
| 143 | } |
| 144 | |
| 145 | componentDidMount() { |
| 146 | this.state.rotateXfront.addListener(({ value }) => { |
| 147 | this.flushTransform(this.frontFaceRef, value, this.state.frontFaceOriginY); |
| 148 | }); |
| 149 | |
| 150 | this.state.rotateXback.addListener(({ value }) => { |
| 151 | this.flushTransform(this.backFaceRef, value, this.state.backFaceOriginY); |
| 152 | }); |
| 153 | |
| 154 | // Only expose a subset of self `ref` |
| 155 | const pseudoRef = { |
| 156 | expand: this.expand, |
| 157 | collapse: this.collapse, |
| 158 | rasterize: this.rasterize, |
| 159 | getBaseHeight: this.getBaseHeight, |
| 160 | getFlipDuration: this.getFlipDuration, |
| 161 | }; |
| 162 | |
| 163 | if (this.isRoot) { |
| 164 | this.managedComponents.push(pseudoRef); |
| 165 | } else { |
| 166 | this.context.registerComponent(pseudoRef); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | componentWillReceiveProps(nextProps) { |
| 171 | if (this.isRoot) { |
nothing calls this directly
no test coverage detected