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

Question - How to control rendering timing ?? #384

Closed
yicru opened this issue Aug 26, 2018 · 4 comments
Closed

Question - How to control rendering timing ?? #384

yicru opened this issue Aug 26, 2018 · 4 comments

Comments

@yicru
Copy link

yicru commented Aug 26, 2018

Instead of rendering at the same time, I want to render a few and render a new slide at the same time as snapping.
How to do this ?

@bd-arc
Copy link
Contributor

bd-arc commented Aug 26, 2018

⚠️ You did not follow the contributing guidelines!

As stated in these:

You need to fill out the issue template completely. This step is mandatory! Not doing so will result in your issue getting closed. Don't take this personally if this happens, and feel free to open a new issue once you've gathered all the information required by the template.

@yicru
Copy link
Author

yicru commented Aug 29, 2018

Is this a bug report, a feature request, or a question?

question

Instead of rendering at the same time, I want to render a few and render a new slide at the same time as snapping.
How to do this ?

untitled 3x

untitled2 3x

Have you followed the required steps before opening a bug report?

Have you made sure that it wasn't a React Native bug?

yes

Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?

ios

Environment

React: 16.3.1
React native: 0.55.3
react-native-snap-carousel: 3.7.2

Target Platform:
iOS 11.4

@yicru yicru changed the title How to control rendering timing ?? Question - How to control rendering timing ?? Aug 29, 2018
@bd-arc
Copy link
Contributor

bd-arc commented Aug 29, 2018

@miya1201 Short answer: leverage props onEndReached and onEndReachedThreshold which are inherited from VirtualizedList.

Long answer: this question has been addressed in #139, #308, #201, #285, #297... Take a look at this threads for more information and some user feedback.

@yicru
Copy link
Author

yicru commented Aug 30, 2018

@bd-arc thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants