zachgibson / react-native-parallax-swiper

Paged Parallax Swiper with Effects
MIT License
623 stars 76 forks source link

How to use your module with Typescript #26

Closed F-Tillier closed 6 years ago

F-Tillier commented 6 years ago

Hello,

I would like to use your module with typescript but I can't find any typings. Are you going to create the typings file ?

Best Regards Frédéric

zachgibson commented 6 years ago

👋 Hello @F-Tillier. No TypeScript yet, but I’m interested to check it out. When I get a chance I’ll look at this. I’ll keep this issue open for now.

F-Tillier commented 6 years ago

Hi Zachary,

Thank's for you answer ... For the moment, I have "rewrite" your 2 javascript file in typescript ... You will find them in attachment ... it could be useful for you ;-)

Best Regards Frédéric

2018-04-26 22:47 GMT+02:00 Zachary Gibson notifications@github.com:

👋 Hello @F-Tillier https://github.com/F-Tillier. No TypeScript yet, but I’m interested to check it out. When I get a chance I’ll look at this. I’ll keep this issue open for now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zachgibson/react-native-parallax-swiper/issues/26#issuecomment-384783938, or mute the thread https://github.com/notifications/unsubscribe-auth/AO40riEZFthFDQGd5GWcG93xJROTfzztks5tsjJogaJpZM4ThMkF .

-- Cordialement - Best regards

Frédéric Tillier

jruddell commented 6 years ago

@F-Tillier I am using typescript with this currently.. you dont need to have typings to use it. just declare it as a module in typescript declare module 'react-native-parallax-swiper'; then just like normal in a view you can just import { ParallaxSwiper, ParallaxSwiperPage } from 'react-native-parallax-swiper' you wont have all of the nice typescript features (like intellisense) but still doesn't prevent you from using it.

F-Tillier commented 6 years ago

Hi @jruddell, thank's a lot for the information, it will be very useful for me for future module without typings.

zachgibson commented 6 years ago

I’m thinking I will write a TS version of this lib FYI.

alexandrecoura96 commented 2 years ago

Hello my friend! Do you have any progress on TS Version?

alexandrecoura96 commented 2 years ago

@zachgibson