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<{|
7575
7676/**
7777 * The URL of the platform-specific assets folder.
78+ *
79+ * This will be a `file:` URL.
7880 */
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+ //
7985// - On iOS: We can't easily hardcode this because it includes UUIDs.
8086// 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
8189//
8290// - On Android: Different apps' WebViews see different (virtual) root
8391// directories as `file:///`, and in particular the WebView provides
You can’t perform that action at this time.
0 commit comments