MCPcopy
hub / github.com/jmurzy/react-native-foldview / flushTransform

Method flushTransform

src/FoldView.js:210–230  ·  view source on GitHub ↗
(ref, dx, y)

Source from the content-addressed store, hash-verified

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;

Callers 2

componentDidMountMethod · 0.95
handleBaseLayoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected