We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 134fc2b commit 8948e3aCopy full SHA for 8948e3a
src/components/panningViews/asPanViewConsumer.js
@@ -3,11 +3,15 @@ import PanningContext from './panningContext';
3
4
function asPanViewConsumer(WrappedComponent) {
5
class PanViewConsumer extends Component {
6
+ // TODO: remove when removing PanDismissibleView
7
+ saveRef = r => {
8
+ this.contentRef = r;
9
+ };
10
11
render() {
12
return (
13
<PanningContext.Consumer>
- {context => <WrappedComponent context={context} {...this.props}/>}
14
+ {context => <WrappedComponent ref={this.saveRef} context={context} {...this.props}/>}
15
</PanningContext.Consumer>
16
);
17
}
0 commit comments