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

defaultSource prop not working #56

Open
sudugo opened this issue Jun 20, 2017 · 4 comments
Open

defaultSource prop not working #56

sudugo opened this issue Jun 20, 2017 · 4 comments

Comments

@sudugo
Copy link

sudugo commented Jun 20, 2017

for profile page in my app i pass a default empty profile prop as follows
<CachedImage source={imageSrc} style={styles.profileImage} defaultSource={theme.emptyProfile} />
my empty profile image does not show when its loading the real uri image.
is this behaviour right or should i use customImageComponent?

before first load of uri image, nothing gets shown. after that if the image uri changes , the default source is shown correctly. as nothing is shown during the first load my view gets broken and it pops when image gets loaded.
any help would be appreciated.

when loading for first time...see how no default image is not shown
screenshot_2017-06-21-03-04-43
after first load
screenshot_2017-06-21-03-04-46
when i fetch second time default prop is shown correctly
screenshot_2017-06-21-03-05-16

@sudugo sudugo changed the title defaultSource prop notworking defaultSource prop not working Jun 20, 2017
@NikiLee2016
Copy link

Obviously your test phone is an android device, but defaultSource prop doesn't work on android platform. So you can try it again on an IOS device

@sood03
Copy link

sood03 commented Aug 27, 2017

Any option to get it working on Android?

@wangshuwen1107
Copy link

while loading image image size =0

@wangshuwen1107
Copy link

wangshuwen1107 commented Apr 20, 2018 via email

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

No branches or pull requests

4 participants