Setting onMessage on a WebView overrides existing values of window.postMessage, but a previous value was defined
在React-Native中使用webview的时候,报了一个这样的错误:SettingonMessageonaWebViewoverridesexistingvaluesofwindow.postMessage,butapreviousvaluewasdefined.在issue里并没有找到官方的解决办法,不过有个哥们的方法不错:https://github.com/facebook/react