React-native-animatable: is there `d.ts` ?

Created on 14 Jul 2017  路  10Comments  路  Source: oblador/react-native-animatable

could i write it by typescript?
is there d.ts?

Most helpful comment

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

All 10 comments

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..

Screenshot 2020-05-15 at 16 32 40

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dantman picture dantman  路  3Comments

chapati23 picture chapati23  路  4Comments

Aspirationtocode picture Aspirationtocode  路  7Comments

ghost picture ghost  路  3Comments

quangtruong16994 picture quangtruong16994  路  5Comments