react-native-react-bridge icon indicating copy to clipboard operation
react-native-react-bridge copied to clipboard

Communication from React-Native to React does not seem to work on newer react-native-webview versions on Anroid

Open szalaimd opened this issue 2 years ago • 5 comments

Describe the bug Communication from React-Native to React does not seem to work on newer react-native-webview versions on Anroid. From React to React Native the communication did work as expected.

To Reproduce Install latest webview with latest bridge and try doing anything inside useNativeMessage hook.

Expected behavior useNativeMessage should call the function passed to it.

Platform:

  • OS: [Android]
  • Running on: [Device, Simulator]
  • Version of this package: [0.10.1] or [0.10.0]

Additional context Downgrading react-native-webview to 11.18.1 solves the issue for now.

szalaimd avatar Jul 08 '22 18:07 szalaimd

Hi, what version of react-native do you use? It wasn't reproduced in my envronment with react-native 0.66.3, react-native-webview 11.22.4 and react-native-react-bridge 0.10.1.

inokawa avatar Jul 09 '22 01:07 inokawa

Hi,

I use react and react/dom 17.0.2, react-native 0.68.2. I also use expo 45.0.0. On IOS it worked perfectly, only on Android devices did we experience this issue.

szalaimd avatar Jul 09 '22 08:07 szalaimd

Having the same issue. useNativeMessage won't fire, even on iOS for me.

"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-react-bridge": "^0.10.1",
"react-native-webview": "11.18.1",

Update: had a configuration issue on my end. It's been resolved.

LevelPanic avatar Jul 19 '22 12:07 LevelPanic

Please give feedback for updated to WebView version 13+ and react-native version 0.72+

emit doesn't seem to work. It's not subscribing properly. @inokawa

XChikuX avatar Jul 23 '23 05:07 XChikuX

Please give feedback for updated to WebView version 13+ and react-native version 0.72+

emit doesn't seem to work. It's not subscribing properly. @inokawa

Did you find any solution?

theprashant-one avatar Dec 10 '23 10:12 theprashant-one