1

I have a large React Native project written with Javascript + flow, and would like to convert it to Typescript. This is something I've wanted to do for a while, but haven't got around to doing it because of the painful process of fixing ALL the files, which will take me a very long time.

Is there a way to incrementally introduce Typescript into my project by updating one file at a time? In other words, is it possible to have a React Native project that builds with Javascript and Typescript components?

1 Answer 1

1

Yes it is possible to add typescript little by little.. Use // @ts-ignore to ignore typescript compiler for the code that break. Then start remove the // @ts-ignore as you transform your code from javascript to typescript.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.