基础
动画 Animate
export function MyComponent() {
return <Frame animate={{ scale: 0.5 }} />
}切换 Cycle
// Cycle scale on tap
export function MyComponent() {
const [scale, cycle] = useCycle(3, 1)
return (
<Frame
animate={{ scale: scale }}
onTap={() => cycle()}
/>
)
}拖拽 Dragging
滚动 Scrolling
Last updated