Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

My snack:

https://snack.expo.io/@sitenative/popup-modal-example

Popup open from bottom to top. When gesturing from left to right or conversely popup closed from top to bottom. How to make horizontal animation from left to right or vice versa depending on the user's gesture?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
4.1k views
Welcome To Ask or Share your Answers For Others

1 Answer

Gestures can be recorded by using React-Native's PanResponder API. You can use PanResponder and Animated API to get the desired Result.

you can check a examples from here!. https://reactnative.dev/docs/animations


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...