0

Can we send data content in any of the parameters of react-native-webview?I have a web-view in which I would like to send a path. This path is to be sent to an external html file. Is there any way or any parameter in which I could give the path which would direct it to the html file stored in android-assets?

<WebView 
  source={{htmlData}} 
  originWhitelist={["*"]} 
  domStorageEnabled={true} 
  startInLoadingState={true} 
  javaScriptEnabled={true} 
  scalesPageToFit={true} 
  allowFileAccess={true} 
  injectedJavaScript={injectedToHtml()} 
  ref={(ref)=> { this.webViewRef = ref }} 
  onMessage={this.onMessage} />
barbsan
  • 3,418
  • 11
  • 21
  • 28
Aishwarya R M
  • 123
  • 1
  • 10
  • Did you google this issue? What was the result? See https://stackoverflow.com/help/how-to-ask – jasie Aug 23 '19 at 09:20
  • Please don't post code in comments, you can [edit] your question and format it properly there – barbsan Aug 23 '19 at 10:33

0 Answers0