We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2508b4a commit 2c4b0e8Copy full SHA for 2c4b0e8
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