Commit Graph

7 Commits

Author SHA1 Message Date
Karl Sander
ee27c3a531 Add Animated.Code component to TS types (#119)
Adds the `<Animated.Code>` component and a props type for a render or `exec` prop. Is it right that this should always return an `AnimatedNode<number>`?

Render prop or `exec` should be exclusive, based on how its implemented (`exec` takes precedence), but my TypeScript experience is too limited to figure that out.
2018-10-19 17:57:46 +02:00
Henri Lahtinen
3804b1b152 EasingStatic referenced Animated.EasingFunction but it was not exported (#118)
Trying to use reanimated with typescript results in bunch of `Namespace 'Animated' has no exported member 'EasingFunction'` errors because `Animated.EasingFunction` is not being exported.
2018-10-11 10:53:31 +02:00
Simon Trény
8e73861ffc Update and fix typescript definitions (#70) 2018-08-21 09:15:21 +02:00
Michał Osadnik
06b03a8461 Use strings as value (#53) 2018-08-16 17:09:13 +02:00
Michał Osadnik
02e5dcc1fa Update react-native-reanimated.d.ts (#74) 2018-08-16 16:59:56 +02:00
Jeromy Maligie
0594edc36c Update TypeScript definitions (#63) 2018-08-11 20:08:28 +02:00
Cameron Knight
076e2b2d32 Add typescript definitions (#51)
* Add typescript definitions

* Update typescript definition based on PR comments

* Update react-native-reanimated.d.ts
2018-08-06 10:30:35 +02:00