File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,17 @@ export type Props = $ReadOnly<{|
75
75
76
76
/**
77
77
* The URL of the platform-specific assets folder.
78
+ *
79
+ * This will be a `file:` URL.
78
80
*/
81
+ // It could be perfectly reasonable for this to be an `http:` or `https:`
82
+ // URL instead, at least in development. We'd then just need to adjust
83
+ // the `originWhitelist` we pass to `WebView`.
84
+ //
79
85
// - On iOS: We can't easily hardcode this because it includes UUIDs.
80
86
// So we bring it over the React Native bridge in ZLPConstants.m.
87
+ // It's a file URL because the app bundle's `resourceURL` is:
88
+ // https://developer.apple.com/documentation/foundation/bundle/1414821-resourceurl
81
89
//
82
90
// - On Android: Different apps' WebViews see different (virtual) root
83
91
// directories as `file:///`, and in particular the WebView provides
You can’t perform that action at this time.
0 commit comments