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

Method componentDidMount

src/FoldView.js:145–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

flushTransformMethod · 0.95

Tested by

no test coverage detected