(ref, dx, y)
| 208 | } |
| 209 | |
| 210 | flushTransform(ref, dx, y) { |
| 211 | // Matrix multiplication is not commutative |
| 212 | const matrix = transformUtil.createIdentityMatrix(); |
| 213 | const rotate = transformUtil.rotateX(dx); |
| 214 | transformUtil.origin(matrix, { x: 0, y, z: 0 }); |
| 215 | transformUtil.applyPerspective( |
| 216 | matrix, |
| 217 | this.props.perspective || rootDefaultProps.perspective, |
| 218 | ); |
| 219 | transformUtil.multiplyInto(matrix, matrix, rotate); |
| 220 | |
| 221 | ref.setNativeProps({ |
| 222 | style: { |
| 223 | transform: [ |
| 224 | { |
| 225 | matrix, |
| 226 | }, |
| 227 | ], |
| 228 | }, |
| 229 | }); |
| 230 | } |
| 231 | |
| 232 | expand() { |
| 233 | const duration = this.props.flipDuration; |
no outgoing calls
no test coverage detected