ds300 / react-native-typescript-transformer

Seamlessly use TypeScript with React Native
MIT License
657 stars 50 forks source link

react-native 0.42.3 would it be possible? #27

Closed vinils closed 7 years ago

vinils commented 7 years ago

Hey guys, first of all I would like to thank you for your solution that is help me a lot!

I´m trying to integrate reactxp and expo but reactxp is running on react-native 0.42.3. Does anyone knows if would it be possible to run react-native-typescript-transformer on react-native 0.42.3 and how i could make that?

Thanks in advance

ds300 commented 7 years ago

Hi!

React-native versions less than 0.45 don't support custom source extensions, so react-native-typescript-transformer will not work out of the box. It is possible using patch-package, but you'd need to fiddle around with the react-native internals to figure out how to hack in support for .ts source extensions. I've done it before but couldn't share the code since I did it on a previous customer project.

vinils commented 7 years ago

Thank you very much for kindle share that with me... I´ll go on that!

ds300 commented 7 years ago

I'm going to close this issue due to inactivity. Feel free to reopen it if you have further questions about using react-native versions before 0.45