Open hfqf opened 6 years ago
<WebViewAndroid ref={WEBVIEW_REF} style={{width:SCREEN_WIDTH,height:SCREEN_HEIGHT-20,backgroundColor:'gray'}} source={{uri:this.state.url,method: 'GET'}} javaScriptEnabled={true} domStorageEnabled={true} scalesPageToFit={true} onMessage={this.onMessage.bind(this)} injectedJavaScript={patchPostMessageJsCode} />
If I change WebViewAndroid to WebView,it'll be ok
+1. onMessage doesn't seem to be working.
i solve it https://github.com/gmfe/react-native-gm-webview
me too,do you ok now ?
You can check liyatang's answer