We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2508b4a + f360e41 commit 51146b1Copy full SHA for 51146b1
1 file changed
src/ImageHeaderScrollView.js
@@ -197,7 +197,11 @@ class ImageHeaderScrollView extends Component<Props, State> {
197
if (!this.container) {
198
return;
199
}
200
- this.container.measureInWindow((x, y) => this.setState(() => ({ pageY: y })));
+ this.container.measureInWindow((x, y) => {
201
+ if (this.container) {
202
+ this.setState(() => ({ pageY: y }));
203
+ }
204
+ });
205
};
206
207
onScroll = (e: *) => {
0 commit comments