Does <SvgUri /> component support cache?
See original GitHub issueDoes <SvgUri />
component support cache like react native’s <Image />
component?
For example I’m using cache for my remote png files like
<Image
source={{
uri: "https://example.com/image.png",
cache: 'force-cache',
}}
/>
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5
Top Results From Across the Web
Does <SvgUri /> component support cache? #1328 - GitHub
Does component support cache like react native's component? For example I'm using cache for my remote png files like.
Read more >react-native-svg-cache - npm
URL SVG's are cached using react native's Async Storage. Forked from 'react-native-svg-uri'. Merge with source code of 'react-native-fast-svg'.
Read more >How to cancel SvgUri request when component will unmount
This is an no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous task in "a...
Read more >react-native-fast-svg - npm Package Health Analysis - Snyk
Render SVG images in React Native using a URL or a static file. SVG's rendered from a url are cached using react native's...
Read more >Working with SVGs in React Native - OpenReplay Blog
Converting an existing SVG image to a React Native component can be a ... The react-native-svg library has a SvgUri component that allows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also needed caching and solved it like this:
@danyasnov hey there! thank you for your answer and the hint with the memory leak. do you know why this is the case and how you could test for that? thank you!