Skip to content

Commit 6fe3538

Browse files
author
James Pearson
committed
Call the pased onMessage after dealing with the height of the webview
1 parent 19adfe0 commit 6fe3538

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ export default class MyWebView extends Component {
5757
}
5858

5959
_onMessage(e) {
60+
const { onMessage } = this.props;
6061
this.setState({
6162
webViewHeight: parseInt(e.nativeEvent.data)
6263
});
64+
onMessage(e);
6365
}
6466

6567
stopLoading() {

0 commit comments

Comments
 (0)