[Feat Request] Caching for url assets out of the box
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, ios, react-native, typescript
- Domain
- mobile
Research direction
Review the React Native Rive component’s URL loading path and the Android Volley behavior described in the issue, then compare it with iOS resource caching. Check the “Loading in Rive files” documentation section; done means URL-loaded .riv assets are cached across app launches on both platforms and the behavior is documented.
Written by the indexing model from the issue text.
Description
Description
I noticed on iOS network resource caching is working which is expected, but on android we don't have any cache layer control even though we are using Volley which provides response caching (maybe right now it works only if headers are provided?)
While implementing Rive in React Native it felt as the package also supports caching out of the box, which is not the case right now while other platform SDKs do provide it. I feel we should mention this somewhere in documentation (maybe a small note in Loading in Rive files section) for React Native implementation.
Provide a Repro
<Rive
url="https://someurl/qwerty.riv"
fit={Fit.Contain}
autoplay={true}
/>
Source .riv/.rev file
.riv
Expected behavior
I expected the animation file to be cached across app launches on both platforms android as well as ios
- Dominant language
- TypeScript
- Stars
- 783
- Forks
- 81
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rive-app/rive-react-native
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
rive-app/rive-react-native#433 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
rive-app/rive-react-native#431 · 2 comments ·
-
[Android] Rive events dispatched off the UI thread can deadlock with Reanimated under Fabric (ANR) Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
rive-app/rive-react-native#444 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
rive-app/rive-react-native#441 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
rive-app/rive-react-native#440 ·
All issues in rive-app/rive-react-native
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·