I try to call a function from injectedJavascript of webview , in android it works fine , but on IOS it didn't work , could you help me on that , this is my webview :
<View style={container}>
<WebView
javaScriptEnabled={true}
domStorageEnabled={true}
injectedJavascript={this.jsCode.bind(this)}
onNavigationStateChange={this.onNavigationStateChange}
source={webapp}
ref="WEBVIEW_REF"
style={webView}
decelerationRate="fast"
/>
</View >
my function is :
jsCode() {
let linn ='document.querySelector(".spl-bg2").style.color="blue";';
return linn;
}