rive-app / rive-app/rive-react-native

[Feat Request] Caching for url assets out of the box

Open
#284 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
783
Forks
81
Avg merge
3d 6h
Merged PRs (30d)
3

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

Tech stack
android, ios, react-native, typescript
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.