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
Invariant Violation: Failed to call into JavaScript module method WebViewMessageHandler1.onMessage() #3395
Comments
same error |
It will work for me. |
@AreebGhani yes, also for me, thank you! |
@AreebGhani Can confirm, for me the |
@rhenandias It seems there's a compatibility issue or a bug in the latest version (13.8.5) that may be fixed soon. |
Any update on this? or is there something I can do to get this running in the meantime? I require the update introduced in 13.8.5 (which apparently also broke this 😢) EDIT: Wow, I didn't realise the differences between iOS and Android here. For anyone coming across this issue I was able to also fix this by downgrading to 😵 |
Getting the same error when using "react-native-webview" with "react-native-fusioncharts": "^5.2.3" "expo": "~50.0.17", even downgrading to version 11 and 12 did not resolve the issue. |
The same error here for Downgrading the package via |
Downgrading to version |
The issue seems to be with compatibility with Expo. I needed other modules that weren't compatible with Expo, so I created a project in bare React Native, and the latest version works as expected. |
We are having the same issue? My dependencies: Anyone have a solution? EDIT: I've solved the issue |
Bug description:
The minimum execution example in the documentation for the
window.ReactNativeWebView.postMessage
method does not work when using version ^13.To Reproduce:
After installing the module with the following command
npm install react-native-webview
, the package installed is version"react-native-webview": "^13.8.4"
, and with this package, the minimum example returns the following error:The code provided in the documentation:
However, when downgrading to version 11 with the package
npm install react-native-webview@11
the version"react-native-webview": "^11.26.1"
is installed, and with this version the same code works normally as expected.Environment:
The text was updated successfully, but these errors were encountered: