Skip to content

Instantly share code, notes, and snippets.

@davidhellsing
davidhellsing / gist:6d5d8fd1a62943e43a6a91f6982e63b8
Last active February 20, 2019 13:38
Simple, functional animation of values using React Native Easing
import { Easing } from 'react-native'
/*
* Function that animates a value from 0 - 1
* Uses React Native’s Easing functions
* Returns an object that has a stop() function
*/
interface Args {
duration: number,
fisk();
throw new Error('fisk');