We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f82f09 commit acc6d59Copy full SHA for acc6d59
1 file changed
src/ImageHeaderScrollView.js
@@ -232,6 +232,7 @@ class ImageHeaderScrollView extends Component<Props, State> {
232
onScroll,
233
ScrollViewComponent,
234
scrollViewBackgroundColor,
235
+ getScrollViewRef,
236
...scrollViewProps
237
} = this.props;
238
/* eslint-enable no-unused-vars */
@@ -247,7 +248,12 @@ class ImageHeaderScrollView extends Component<Props, State> {
247
248
backgroundColor: scrollViewBackgroundColor,
249
},
250
]}
- ref={ref => (this.container = ref)}
251
+ ref={ref => {
252
+ this.container = ref;
253
+ if (getScrollViewRef) {
254
+ getScrollViewRef(ref);
255
+ }
256
+ }}
257
onLayout={this.onContainerLayout}
258
>
259
{this.renderHeader()}
0 commit comments