Преглед на файлове

chore(docs): Update Guide.md (#1305 by @bovesan)

[skip ci]
Bengt Ove Sannes преди 4 години
родител
ревизия
d9c73e0f6f
No account linked to committer's email address
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5
    0
      docs/Guide.md

+ 5
- 0
docs/Guide.md Целия файл

@@ -55,6 +55,10 @@ class MyWeb extends Component {
55 55
 
56 56
 ### Loading local HTML files
57 57
 
58
+Note: This is currently not working as discussed in [#428](https://github.com/react-native-community/react-native-webview/issues/428) and [#518](https://github.com/react-native-community/react-native-webview/issues/518). Possible workarounds include bundling all assets with webpack or similar, or running a [local webserver](https://github.com/futurepress/react-native-static-server).
59
+
60
+<details><summary>Show non-working method</summary>
61
+
58 62
 Sometimes you would have bundled an HTML file along with the app and would like to load the HTML asset into your WebView. To do this on iOS and Windows, you can just import the html file like any other asset as shown below.
59 63
 
60 64
 ```js
@@ -84,6 +88,7 @@ class MyWeb extends Component {
84 88
   }
85 89
 }
86 90
 ```
91
+</details>
87 92
 
88 93
 ### Controlling navigation state changes
89 94