简体   繁体   中英

Popup horizontally animate

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM