Thanks but I need to load external scripts in my HTML that can’t be localized so can’t really go inline (script tags won’t work inline) - any alternatives/workarounds?
OK, I have not played around with the FileSystem API much before, but I think it might form part of your solution.
The following works for me, but I haven’t worked out how to get the file:/// URL of an asset, so I just wrote an HTML file before reading it in again. But maybe it gives you some ideas:
Thanks but the thing is I couldn’t get script tags to work when loading the HTML as content string … at least for expo v35 <script src...> inside a string passed to source:{{html}} does not seem to work… any ideas?
Thinking about it some more, the baseUrl thing does make sense. I assume you tried it and it did not help?
Cookies are tied to a domain, so if there’s no domain (because you’re not loading the HTML from a server) I would not be surprised for the cookies to be disabled. But if you manually specify a domain (by providing a baseUrl), then there’s no reason that cookies couldn’t work.
Whether or not baseUrl does cause cookies to be enabled, I don’t know. Anyway, good luck.