vincentriemer / react-native-dom

An experimental, comprehensive port of React Native to the web.

Home Page:https://rntester.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebView messaging errors

tbergman opened this issue · comments

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.

Further info: reproduced in Chrome 69 / OS X

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