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

Add renderLoading and renderError support for each of gallery items #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

almirfilho
Copy link

As proposed in issue #41 =)

style={{width: layout.width, height: layout.height}}
source={{uri: pageData}}
onLoad={this.setLoadedStatus.bind(this, pageId)}
onError={this.setErrorStatus.bind(this, pageId)}/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to add a listener on onProgress, that way you could even call renderLoading with the progress. See react-native-image-progress

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you look at:
meliorence/react-native-image-gallery#13

p. 5.

This way you can achieve whatever you want with a custom Image component.

It doesn't look like @ldn0x7dc is maintaining this repo and it's dependencies.

@sroze
Copy link

sroze commented Jul 2, 2017

That would be a very good start! What's your view on this @ldn0x7dc ?

@pcfutures
Copy link

+1 would like this, @ldn0x7dc

@luco
Copy link

luco commented Nov 22, 2017

@ldn0x7dc Merge this, please.

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.

5 participants