react-native-webview-leaflet icon indicating copy to clipboard operation
react-native-webview-leaflet copied to clipboard

Module is not a registered callable module (calling onMessage)

Open baydikov-v opened this issue 4 years ago • 6 comments

Hi Can you help me with this error? Module is not a registered callable module (calling onMessage) When I run your demo app it works, but if I create new Expo app and try to use your App component from demo it doesn't work. What should I do with this error? Thanks

baydikov-v avatar Mar 04 '21 08:03 baydikov-v

facing same issue. tried older versions of this package and it created some more issues. tried installing the dependencies which were mentioned. nothing is working. im using expo 40

ptpmashish avatar Mar 09 '21 19:03 ptpmashish

I've changed the dependency "react-native-webview" from "^8.0.3" to "^9.4.0" in node_modules/react-native-webview-leaflet/package.json, run "npm i" in the same folder, and now it works with no error! The idea came from this fork by uclapi: https://github.com/uclapi/react-native-webview-leaflet/commit/f7b261a7c38719419880cec9b7fdc15fa35beec2 Hope it helps -)

makemake94 avatar Mar 16 '21 22:03 makemake94

My solution doesn't work anymore, don't know why. However, by looking on google, the problem seems to be associated with react-native-webview. Moreover, there may be some conflicts with dependencies, since I'm forced to install the package with --legacy-peer-deps (expo 40)...

makemake94 avatar Mar 17 '21 23:03 makemake94

i have the same issue i hope someone help

yusufsoliman1231 avatar Mar 21 '21 19:03 yusufsoliman1231

It looks like this is caused due to a dependency on an old version of react-native-webview.

I was able to get this working by forking the repo and updating the version of RNWebview to match the one my app was already using.

Dean177 avatar May 25 '21 11:05 Dean177

i have the same issue i hope someone help

I have rewritten this library using latest react-native-webview version. You can check here https://github.com/pavel-corsaghin/react-native-leaflet

pavel-corsaghin avatar Sep 04 '21 04:09 pavel-corsaghin