Browse Source

chore(docs): Added additional note to `source` parameter (#621)

Added a note about the baseUrl usage since this has been the cause of some filed issues e.g. https://github.com/react-native-community/react-native-webview/issues/526#issuecomment-498067637
Tijs Teulings 5 years ago
parent
commit
a863c6557f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      docs/Reference.md

+ 1
- 1
docs/Reference.md View File

@@ -85,7 +85,7 @@ The object passed to `source` can have either of the following shapes:
85 85
 
86 86
 **Static HTML**
87 87
 
88
-_Note that using static HTML requires the WebView property [originWhiteList](Reference.md#originWhiteList) to `['*']`._
88
+_Note that using static HTML requires the WebView property [originWhiteList](Reference.md#originWhiteList) to `['*']`. For some content, such as video embeds (e.g. Twitter or Facebook posts with video), the baseUrl needs to be set for the video playback to work_
89 89
 
90 90
 - `html` (string) - A static HTML page to display in the WebView.
91 91
 - `baseUrl` (string) - The base URL to be used for any relative links in the HTML.