- Notifications
You must be signed in to change notification settings - Fork1.5k
Feature/preload callbacks#437
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
# Conflicts:#android/src/main/java/com/dylanvann/fastimage/FastImagePreloaderModule.java#src/index.d.ts#src/index.js
guhungry left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please renameFastImagePreloaderModule back toFastImageViewModule and extract method into new class instead from preload()
| importcom.facebook.react.views.imagehelper.ImageSource; | ||
| classFastImageViewModuleextendsReactContextBaseJavaModule { | ||
| classFastImagePreloaderModuleextendsReactContextBaseJavaModule { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Why rename class just like that. I have#425 which edit FastImageViewModule.java
codecovbot commentedMar 28, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## main #437 +/- ##===========================================- Coverage 96.29% 51.28% -45.02%=========================================== Files 1 2 +1 Lines 27 39 +12 Branches 2 0 -2 ===========================================- Hits 26 20 -6- Misses 1 19 +18
Continue to review full report at Codecov.
|
RWOverdijk commentedMay 13, 2019
Hey all! Is this going somewhere? |
augustbjornberg commentedMay 17, 2019
Is this PR still being worked on? Would be such a nice feature to have. |
Ilphrin commentedMay 28, 2019
There are some conflicts, I think you should resolve them@Mickagd before@DylanVann can take a look at this PR ^^ |
SamiChab commentedJun 12, 2019
Please consider implementing this! It would be so useful! |
Update from original repository
RWOverdijk commentedJun 19, 2019
Really happy to see this still moving forward! I can't wait to remove my component hack 😄 |
LuisRodriguezLD commentedAug 21, 2019
Hello. Any update on this? |
RWOverdijk commentedAug 21, 2019
@LuisRodriguezLD As far as I can see there are conflicts. |
RWOverdijk commentedOct 12, 2019
I've reimplemented this. Confirmed to work on iOS. Android I'll check later. I'll make a PR when I'm done. On a sidenote, my solution uses a lot less code so I'm hoping that makes it easier to get it merged. |
Elindorath commentedOct 15, 2019
Hi@RWOverdijk. Thanks for your work! Could you publish your reimplementation on your fork that we can help to test it and speed up this to get it merged? We really need this to be compatible with RN v0.60+. |
RWOverdijk commentedOct 15, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@Elindorath Sure thing. I have to finish android first though. The module is compatible with 0.60+ for me, so I'm not sure what you mean |
Sync with the original repo
joan-saum commentedNov 4, 2019
Hi@RWOverdijk , how is it going with Android ? :) Need any help ? |
sebqq commentedNov 5, 2019
Promise should also return which pictures from array couldn't be fetched, not only how many couldn't be fetched. |
RWOverdijk commentedNov 5, 2019
@joan-saum It's going all right. The biggest problem right now is time and priorities. I can push the iOS stuff at some point this or next week though, maybe someone else can then PR the android stuff to my branch and we can get this thing going! Sorry for my lack of time... It bothers me as well. |
sebqq commentedNov 11, 2019
Please, consider to also add id to every image, so we can check from react-native side which images failed to load. |
RWOverdijk commentedNov 11, 2019
@sebinq I will not be doing that but you could add that after if you want. |
sebqq commentedNov 11, 2019
@RWOverdijk thanks for info,, I will try. |
RWOverdijk commentedJan 23, 2020
The problem is that my project isn't selling well enough to prioritize this feature (My sales strategy was well calculated but man, am I bad at math.). |
…allbacks-fetch-updates-2021-08-18
…dd callback to preload function
…dates-2021-08-18Feature/preload callbacks fetch updates 2021 08 18
Mickagd commentedAug 20, 2021
We have updated our PR with your last changes. |
nguyenphucbao68 commentedAug 30, 2021
Please merge this PR. I really need it 👍 |
Flictuum commentedJan 25, 2022
Hi guys just a last call if it's possible to merge this PR, we invested time here to bring last changes to the PR and I think this will help a lot of people. |
| ViewProps, | ||
| }from'react-native' | ||
| constFastImageViewNativeModule=NativeModules.FastImageView |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This line should remain because it is needed to use "clearMemoryCache" and "clearDiskCache". It also generate a typescript error.
putuoka commentedMay 20, 2022
how to implement this into my project? because i don't have src folder in my node_modules fast image |
nicomontanari commentedMay 20, 2022
Hi@putuoka, did you download the stable version of the package or did you download it from this pull request? If you have downloaded the stable version in your |
putuoka commentedMay 20, 2022
Hi@nicomontanari , thanks for the reply. i have downloaded stable version using sorry because i'm new with rn i might missing something here. sorry for my english. please enlighten me because i need to use preload promise/callback to know when it done downloading resources and then i can use it as cache with fast images & redux persist |
nicomontanari commentedMay 20, 2022
@putuoka you need to install this package with |
putuoka commentedMay 23, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hi@nicomontanari i got this error: edit: run solved!! it's working!! here what i do:
note: it can't preload 151 images. sometimes just 32, sometimes 113 |
putuoka commentedMay 25, 2022
Btw This pull make FastImage.clearDiskCache() broken
code: |
patissier-boulanger commentedAug 5, 2022
really need this! |
knro commentedOct 23, 2022
Any plans yet to merge this? Any forks that have this merged with upstream? |
AlessandroAries commentedMar 22, 2023
I added the changes to my fork with the updated stream:#986 |
skizzo commentedJun 20, 2023
This would be so nice to have! |
ymc-thzi commentedJul 7, 2023
Had the same need, couldn't patch the PR due to conflicts. I am using another patch to get thecache folder path |



We also need this PR to be merged