Skip to content

Conversation

@jamespearson
Copy link
Contributor

(Similar issue is in #16 , but their fix doesn't work).

Currently, if you set onMessage, the spread of this.props on the webview overwrites the call to _onMessage , rendering the component useless.

To fix I have:

  • reorder the properties on the webview, to ensure onMessage is not overwritten
  • ensure there is a default onMessage function (no-op)
  • Added a call to the passed onMessage once _onMessage has dealt with the height.

@scazzy scazzy merged commit 28758c6 into scazzy:master Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants