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

Carousel with long pagination #369

Closed
5 tasks done
sani723 opened this issue Aug 5, 2018 · 6 comments
Closed
5 tasks done

Carousel with long pagination #369

sani723 opened this issue Aug 5, 2018 · 6 comments
Labels

Comments

@sani723
Copy link

sani723 commented Aug 5, 2018

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

Question.

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

(Check the step you've followed - replace the space character between the square brackets ([]) by an x.)

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?

Both

Is the bug reproductible in a production environment (not a debug one)?

Yes

Environment

Environment:
React: 16.3.1
React native: 0.55.2
react-native-snap-carousel: 3.7.2

Target Platform:
Android (6.0)
iOS (10.3)

Expected Behavior

In case of large number of items it should just show few items in pagination with current item in center.

image

Actual Behavior

It shows long pagination, initially current item index is out of screen etc.
image

@bd-arc
Copy link
Contributor

bd-arc commented Aug 6, 2018

@sani723 This is an interesting feature request.

How would you animate the dots when switching between items? Do you have an exemple?

@bd-arc bd-arc added the feature label Aug 6, 2018
@sani723
Copy link
Author

sani723 commented Aug 7, 2018

@bd-arc
Copy link
Contributor

bd-arc commented Aug 16, 2018

@sani723 Unfortunately, the library you've mentioned is a native one which is a no-go for us since we want to keep this plugin free of any native dependencies.

I don't see any easy way to introduce this feature. If you or another contributor wants to jump in and submit a PR, do not hesitate ;-)

@anniewey
Copy link

@sani723 you can use this react-native-pagination

@bd-arc
Copy link
Contributor

bd-arc commented Sep 27, 2018

Thanks for the link @anniewey!

It should be a piece of cake to connect this plugin to the carousel since the latter is a FlatList :-)

@doougui
Copy link

doougui commented Apr 28, 2022

I'm having the same problem here. Do you guys have any solution to this issue?

image

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

No branches or pull requests

4 participants