vincentriemer / react-native-dom

An experimental, comprehensive port of React Native to the web.
https://rntester.now.sh
MIT License
3.25k stars 74 forks source link

WebView messaging errors #86

Open tbergman opened 5 years ago

tbergman commented 5 years ago

Reproducing : RNTester -> WebView -> Messaging Text Example: (The ‘Send message’ buttons are not clickable (please see issue #85) As a temp fix to make the ‘Send message to React Native’ button clickable, I changed the pointer-events prop of the parent component of the iframe (ui-child-container-view) from ‘unset’ to ‘auto’) When I click on it I get the following error: "Uncaught TypeError: Failed to execute 'postMessage' on 'Window': No function was found that matched the signature provided. at HTMLButtonElement." I also got an error when clicking on the ‘Send Message to Web View’ but currently can't reproduce it. I couldn’t get this to work when running another React Native demo app with a WebView - getting similar errors.

tbergman commented 5 years ago

Further info: reproduced in Chrome 69 / OS X

tbergman commented 5 years ago

Update: When clicking on 'Send Message to Web View' there are no errors and the message is posted but the WebView doesn't receive it