소스 검색

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 년 전
부모
커밋
a863c6557f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      docs/Reference.md

+ 1
- 1
docs/Reference.md 파일 보기

@@ -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.