N
N
Nikita2020-01-29 15:28:32
React
Nikita, 2020-01-29 15:28:32

How to add menu opening by swipe?

Tell me how to add the opening of the menu by swipe? As in the photo below
5e3179c7bd937265587119.jpeg
I came across the @sandstreamdev/react-swipeable-list library, but unfortunately it does not have TypeScript support

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gennady Furduy, 2020-01-29
@SonyFan23

https://github.com/sandstreamdev/react-swipeable-list has TS support. What exactly is not working for you?

N
nvdfxx, 2020-01-29
@nvdfxx

you hang touchstart / touchend events on the list elements -> compare coordinates -> do what you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question