Once an application is loaded I would like to change a favicon.
Does anyone know how to do that?
Thanks!
I haven’t done this, but expo-web should be just like any other web app.
So you would normally put a <link rel="icon" />
in the <head />
, per https://favicon.io/tutorials/how-to-add-a-favicon-to-a-website-png-format/
A canonical React library to dynamically affect HTML tags in the is React-Helmet: https://github.com/nfl/react-helmet , so probably something like:
<Helmet>
<link rel="icon" href={your dynamic code} />
</Helmet>