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