diff --git a/index.js b/index.js index 0c8566c..2a2861e 100644 --- a/index.js +++ b/index.js @@ -58,6 +58,7 @@ export default class MyWebView extends Component { } _onMessage(e) { + if (this.props.onMessage) this.props.onMessage(); this.setState({ webViewHeight: parseInt(e.nativeEvent.data) });