MCPcopy Index your code
hub / github.com/jmurzy/react-native-foldview / handleBaseLayout

Method handleBaseLayout

src/FoldView.js:322–346  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

320 }
321
322 handleBaseLayout(e) {
323 const layout = e.nativeEvent.layout;
324
325 this.setState({
326 baseLayout: layout,
327 frontFaceOriginY: layout.height / 2,
328 backFaceOriginY: -layout.height / 2,
329 }, () => {
330 this.flushTransform(
331 this.frontFaceRef,
332 /* eslint-disable no-underscore-dangle */
333 this.state.rotateXfront.__getValue(),
334 /* eslint-enable */
335 this.state.frontFaceOriginY,
336 );
337
338 this.flushTransform(
339 this.backFaceRef,
340 /* eslint-disable no-underscore-dangle */
341 this.state.rotateXback.__getValue(),
342 /* eslint-enable */
343 this.state.backFaceOriginY,
344 );
345 });
346 }
347
348 renderFrontface() {
349 if (this.state.baseLayout) {

Callers

nothing calls this directly

Calls 1

flushTransformMethod · 0.95

Tested by

no test coverage detected