Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Cache / Download Images #3

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

[WIP] Cache / Download Images #3

wants to merge 1 commit into from

Conversation

agilgur5
Copy link
Owner

Still getting bugs with react-native-expo-image-cache, even on my fork. Might be a Babel 7 thing.

This is still not ideal as caching is a bit different than the standard reader app functionality of "download / save for later". Long-term storage and unnecessary storage are issues. The other issue is that at least some sites have signed/timestamped images; if they're cached, they won't expire by timestamp of course, but retrieving the image might not hit the cache.

This likely needs a more custom solution with FilesystemStorage, which would be way more effort. The timestamp concerns and general restructuring of how pages/images are retrieved also requires more integrations with different sites to see how different ones do it.

- use react-native-expo-image-cache, which just caches all images used
  by its component in temp storage
  - not quite like local storage persist: doesn't have a way to purge
    and just caches all images, not specific ones chosen or from
    favorites or anything
  - will have to make modifications later so it works like other manga
    apps where you can click a download button for specific manga

- had to fork it as it hasn't been updated in a while and performs a
  build on postinstall instead of during packaging
  - still getting a bug on missing '@babel/runtime'. not sure if this
    is required in Babel 7 now (post beta)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant