react-native-webview2
react-native-webview2 copied to clipboard
evalJs NOT WORK on ios
Hi, I tried to use this.web.evalJs() function, but it doesn't work. The javascript served in function argument didn't fire at all. I tried this.web.evalJs('alert('Hello')'), but got redirect error. Do I something wrong?
android or ios ? react-native-webview2 cannot work well on ios now, maybe fix next week.
iOS :( Let me now when you will fix it 👍
Any progress here?
sorry for waiting, I will think about this bug in this week, I am very busy these days...
sorry, this method still not support on ios until now. I didn't find a very good way to resolve this. one method is set the props: injectedJavaScript. but not very good, it must be refreshed. @erikdung
@greatbsky have you checked react-native-webview-bridge, specifically the v2 branch? It allows for two-way communication with WebView <-> React Native.