alinz / react-native-webview-bridge

React Native Webview with Javascript Bridge
MIT License
1.37k stars 491 forks source link

Access/communication to exsisting WebView #84

Closed misherone closed 6 years ago

misherone commented 8 years ago

Can I somehow communicate to exsiting javascript interface (e.g. "bridge") attached to the WebView from React app? I have working android and iOS projects with WebView and my custom JS interface with huge functionaluty that i want to reuse. There is no way I can reimplement it as extension for React (especially foe iOS). The problem is that React App is not in WebView, and for React it is better to not have it at all. So I have WebView and js interface attached to it. Also I have a js library (e.g. "client") in my app (running inside webview) to use this "bridge". So the question is: is it possible have a setup with "client" js library imported into React app and communicate to the "bridge"? I have also posted on stack overflow this question