could i write it by typescript?
is there d.ts?
Any update about this? Do you consider adding typescript types?
Hey, I don't have any types but would accept a PR adding this 馃憤
I would appreciate this very much!
@oblador @geminiyellow
Please see #150, This is just the first try.
Feel free to comment on the PR.
Released in 1.2.4
Looks like there is some bug with transition typing.
<AnimatableFlatList easing="ease" ... works fine
however
<AnimatableFlatList transition="opacity" ... raises TS error
How do we even use these types definitions? 馃槄 I was hoping for something in DefinitelyTyped but couldn't find it.
For a complete beginner having a lot of ways to do something that I was expecting to be simple is kinda daunting.
As they're included since 1.2.4 you should have them without any action on your side beside installing it with npm i react-native-animatable --save or yarn add react-native-animatable
I thought so as well! However, the module is not found [ts] Cannot find module 'react-native-animatable'. when I try to import it as :
import * as Animatable from 'react-native-animatable'.
I have checked my package.json:
"react-native-animatable": "^1.3.0",
@enagorny did you resolve this issue? It's almost exactly 2 years later and I still have the same error on some views.
When using a BlurView with:
const AnimatableBlurView = createAnimatableComponent(BlurView);
TypeScript infers the type
const AnimatableBlurView: AnimatableComponent<BlurViewProperties, StyleProp<ViewStyle>>
But it still can't detect the transition property..

Most helpful comment
@oblador @geminiyellow
Please see #150, This is just the first try.
Feel free to comment on the PR.