X 归档 2023-08-02
I recreated the iOS list view with React Aria Components and Framer Motion! It has fluid swipe gestures, layout animations, multiple selection mode, and even keyboard support. The code is remarkably small for that much functionality too. Check it out! 🤩
https://codesandbox.io/s/rac-framer-ios-list-2w6lxw?file=/src/App.js
https://codesandbox.io/s/rac-framer-ios-list-2w6lxw?file=/src/App.js
我用 React Aria Components 和 Framer Motion 复刻了 iOS 列表视图!它有流畅的滑动手势、布局动画、多选模式,甚至还有键盘支持。实现这么多功能,代码量却出奇地小。快来看看!🤩
https://codesandbox.io/s/rac-framer-ios-list-2w6lxw?file=/src/App.js
https://codesandbox.io/s/rac-framer-ios-list-2w6lxw?file=/src/App.js
