Created
July 12, 2015 04:32
-
-
Save JedWatson/7020fa22f2d70e3a0fa4 to your computer and use it in GitHub Desktop.
Declarative Interaction Component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Flick settings={...}> | |
{velocityDelta => | |
<Spring | |
currentVelocity={currentVelocity => velocityDelta === 0 ? currentVelocity : | |
increase(currentVelocity, velocityDelta) | |
} | |
endValue={...}> | |
{currentValues => <div />} | |
</Spring> | |
} | |
</Flick> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment