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

Feedback for “Pagination” #770

Open
kurdev2020 opened this issue Jan 24, 2025 · 3 comments
Open

Feedback for “Pagination” #770

kurdev2020 opened this issue Jan 24, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@kurdev2020
Copy link

Pagination not imported in latest version , i used it with typescript and got an error

Copy link

dosubot bot commented Jan 24, 2025

Hey @kurdev2020! I'm Dosu, a bot here to help you with bugs, questions, and becoming a contributor. I'm here to assist you while you wait for a human maintainer.

The "Pagination" module is not directly imported from 'react-native-reanimated-carousel'. Instead, you should use Pagination.Basic. The Pagination object includes both Basic and Custom components. Here's how you can use Pagination.Basic:

<Pagination.Basic
    progress={progress}
    data={yourDataArray}
    dotStyle={{ backgroundColor: "#262626" }}
    activeDotStyle={{ backgroundColor: "#f1f1f1" }}
    containerStyle={{ gap: 5, marginBottom: 10 }}
    onPress={onPressPagination}
/>

Make sure to access the Basic or Custom components through the Pagination object [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the bug Something isn't working label Jan 24, 2025
@gregoryalary
Copy link

@kurdev2020 this is an alpha feature, use 4.0.0-alpha.12.

@somashekhar161
Copy link

how to use Custom
its throwing displayName undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants