You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @pke,
Could you provide an example of how it can be useful? For instance, it can be a private API for which we can give headers to authorize. Do you know if there is another example?
Feature Request
It would be nice to be able to specify HTTP headers for
SvgUri
.Why it is needed
Sometimes the server could serve a different variant of the SVG file depending on client features like dark contrast or inverted colours.
Possible implementation
It would just need on addition property
headers
which is modelled after the defaultImageURISource
prop.Code sample
Worth a PR?
The caller would need to ensure that
headers
is stable, or it would cause unnecessary re-rerenders.The text was updated successfully, but these errors were encountered: