-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting onMessage on a WebView overrides existing values of window.postMessage #16
Comments
@SamBellerose Could you please provide code sample you're getting this error with? |
Hi, I'm experiencing a similar issue. Did anyone find a solution? Moses |
@SamBellerose, @mosesmc52 could you please provide more details? I will be really great to assist you |
@R1ZZU, user @PaddyLock is using my react-native-webview-braintree package and has run into the same error on iOS (no problems in in Android). I'm sure it's the same problem that @SamBellerose and @mosesmc52 . It also looks like the issue is being referenced in the react-native issue thread here facebook/react-native#10865. Here is the code from my package that experiences the issue.
I'll try to do some more investigating to figure out what specific portion of my code initiates the problem. |
@reggie3 I will investigate this issue and try to provide appropriate workaround |
Thanks. Let me know if I can help. |
Also running into this issue - very interested in a resolution. |
Same issue |
I did a PR for this in #22 , it solved it for me, and it relies on a fix suggested in facebook/react-native#10865. I don't know if this breaks other stuff though. |
I've got this error on iOS when running the project, working well on Android
I tried adding this to my WebView it removed the error, but the events were not being called after
injectedJavaScript="window.postMessage = String(Object.hasOwnProperty).replace('hasOwnProperty', 'postMessage');"
Bug reference: facebook/react-native#10865
The text was updated successfully, but these errors were encountered: