React-native-gifted-chat: Typescript support

Created on 25 Jan 2018  路  24Comments  路  Source: FaridSafi/react-native-gifted-chat

Issue Description

Missing type definition for typescript

Additional Information

No plan to add types definition for typescript?

Most helpful comment

@lucksy can u test against master? If everything is fine with master I can do another release

All 24 comments

Why not... do you any resources somewhere or guideline to do it?
Or maybe a PR?

I will be happy to submit a PR :)

馃憣

Hey @ascariandrea are you working on the types for this? It would be awesome to have this for a project im working on!

@jpmoyn I'm gonna work on this in the next days

@ascariandrea @xcarpentier Any update on this? I really need type definitions to continue using react-native-gifted-chat. I'm ready to submit a PR if you guys are busy. 馃檪

It's been released with v0.4.3 @omkarjoshi-cc

Thanks! @ascariandrea @xcarpentier

Hey! There seems to be a problem with the latest release v0.4.3.
I tried installing using
npm i react-native-gifted-chat --save and
npm i [email protected] --save but the index.d.ts is not getting installed.
I even tried installation using
npm i https://github.com/FaridSafi/react-native-gifted-chat#v0.4.3 but no luck. Can anyone of you please look into this? @ascariandrea @xcarpentier

You should use master.
I will fix the package issue soon with next fix 0.4.4

Thanks! 馃檪

Can we close this @xcarpentier ?

@xcarpentier @ascariandrea
The type for showAvatarForEveryMessage in GiftedChatProps is missing in the current typedefs. I've added it to the typedefs in my fork and I'm using it locally. I've also fixed the this along with it. Shall I submit a PR for these minor fixes?

Good job!
You should, definitely!

It shouldn't be required to use master to have the types

Is this fixed? Both master and 0.4.3 do not install declarations file.
Can we fix this?

Why is this closed ? Typescript types are definitely not available when installing current version (0.4.3).

Same here - types are still unavailable.

Master has types, check the code

@sibelius yes that is the point: master has types, the release (0.4.3 at this moment) does not.

@lucksy can u test against master? If everything is fine with master I can do another release

@sibelius Just tested with 0.5, everything's fine.

(well, except for that imageStyle prop, but that's already fixed in master...)

Thanks!

It appears to be working with 0.5 for me as well.

1190

Was this page helpful?
0 / 5 - 0 ratings