ds300 / react-native-typescript-transformer

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

Fix compatibility with React Native 0.46 final release #19

Closed petejkim closed 7 years ago

petejkim commented 7 years ago

Updated

ds300 commented 7 years ago

Cool thanks. I'm about to go to bed. Should get around to testing this at some point tomorrow.

petejkim commented 7 years ago

This requires the latest metro-bundler react-native depends on (^0.7.4)

If you see messages like Cannot find module 'react-native/packager/transformer', you should do rm yarn.lock package-lock.json && rm -rf node_modules && yarn install.

iRoachie commented 7 years ago

Yea @petejkim It's working. Other thing now is another transform issue with babel https://github.com/facebook/react-native/issues/14866

petejkim commented 7 years ago

I didn't have that issue, but I was upgrading from 0.45.1 to 0.46, I believe new project generation is broken

ds300 commented 7 years ago

Nice thanks. I was getting the same issue as @iRoachie with a brand new project and 0.46.0, but things worked after I restarted the packager (with this change) and rebuilt the app.

ds300 commented 7 years ago

image