reggie3 / react-native-webview-leaflet

A Webview based Leaflet Component for React Native
219 stars 126 forks source link

Erorr when calling onMessage #89

Open LorhanSohaky opened 4 years ago

LorhanSohaky commented 4 years ago

image

{
  "main": "index.js",
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "web": "expo start --web",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "@react-native-community/masked-view": "^0.1.9",
    "@react-navigation/material-top-tabs": "^5.1.9",
    "@react-navigation/native": "^5.1.6",
    "@react-navigation/stack": "^5.2.13",
    "expo": "~37.0.3",
    "expo-updates": "~0.1.0",
    "leaflet": "^1.6.0",
    "lodash": "^4.17.15",
    "react": "~16.9.0",
    "react-dom": "~16.9.0",
    "react-leaflet": "^2.6.3",
    "react-native": "~0.61.5",
    "react-native-elements": "^1.2.7",
    "react-native-gesture-handler": "^1.6.1",
    "react-native-reanimated": "^1.7.1",
    "react-native-safe-area-context": "^0.7.3",
    "react-native-screens": "^2.2.0",
    "react-native-tab-view": "^2.14.0",
    "react-native-unimodules": "~0.9.0",
    "react-native-web": "~0.11.7",
    "react-native-webview": "^9.3.0",
    "react-native-webview-leaflet": "^5.0.2"
  },
  "devDependencies": {
    "@babel/core": "~7.9.0",
    "babel-jest": "~25.2.6",
    "jest": "~25.2.6",
    "react-test-renderer": "~16.9.0"
  },
  "jest": {
    "preset": "react-native"
  },
  "private": true
}
reggie3 commented 4 years ago

I just started a new project and I'm seeing the same thing too. I'll let you know if I come up with a solution. Related to this issue with react-native-webview https://github.com/react-native-community/react-native-webview/issues/1324

I tried downgrading to react-native-webview version 9.2.0 as some of the people in that issue tried but that did not solve this issue.

kenwoolf commented 4 years ago

I just started a new project and I'm seeing the same thing too. I'll let you know if I come up with a solution. Related to this issue with react-native-webview react-native-community/react-native-webview#1324

I tried downgrading to react-native-webview version 9.2.0 as some of the people in that issue tried but that did not solve this issue.

Don't know if it was just a typo, but the last version they said was working was 9.0.2, not 9.2.0.

LorhanSohaky commented 4 years ago

Is it not worthwhile to update the project to a newer version of react native web view?

FreeCaribou commented 4 years ago

Can you please upgrade the react native webview, as Lorhan ask also :) ?

doubleh311 commented 4 years ago

I have tried react-native-webview-leaflet today, and encountered the same issue, I have updated the dev-dependancies react native web view version to 9.4.0 and it works

My project dependencies: