A
A
Andrey Okhotnikov2019-10-03 11:16:03
React Native
Andrey Okhotnikov, 2019-10-03 11:16:03

Sliding slider on dot click?

How in react-native-snap-carousel to implement scrolling when clicking on dot?
There is no information in the docs, you can probably make your own custom dot component and hang onPress on it, but I'm sure that there should be ready-made methods in such a lib.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2019-10-03
@tsepen

There are props in the dock tappableDots set it to true and put a ref on the component. If it doesn’t help, then through renderDots, I think you will have to draw the dots yourself and handle clicking on them.
https://github.com/archriss/react-native-snap-caro...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question