react-swipeable-views
react-swipeable-views copied to clipboard
could you split pagination out from this package
hi @oliviertassinari , why dont you put the pagination.js
and paginationdot.js
to a new package?
swipeable-view may need pagination dot.
for example, react-native-snap-carousel have its pagination.
@geminiyellow Good question, yes, we could export it like they do: https://github.com/archriss/react-native-snap-carousel#pagination-component.
Can i take this issue?
Any updates?
@leonardovillela take it, kill it, plz.
how add pagination to the react swipeable views?
<div className={classes.sliderSection}>
<SwipeableViews enableMouseEvents>
{pictures.map(({ image, title }) => (
<Paper className={classes.slidCard} key={image}>
<img src={image} alt={title} />
<Typography>{title}</Typography>
</Paper>
))}
</SwipeableViews>
</div>
See https://react-swipeable-views.com/demos/demos/#auto-play for an example with pagination