ds300 / react-native-typescript-transformer

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

Do not recommend "dom" TS library #72

Closed newyankeecodeshop closed 6 years ago

newyankeecodeshop commented 6 years ago

I changed the README to include es2017 and remove dom. The RN runtime includes polyfills for ES2017 static methods Object.entries() and Object.values() - they are implemented natively on iOS 10.3+ anyway. I removed dom because that would allow a lot of invalid code to compile, since RN does not include any DOM APIs nor most of the browser Web APIs. The subset that is included is (mostly) defined in @types/react-native. Missing Web APIs will be added to @types/react-native as the community finds them.

henrikra commented 6 years ago

I can vouche this too. I have same setup working in production 👍

ds300 commented 6 years ago

Hey! :wave: Thanks for this! ❤️

Sorry it took me so long to get around to merging, I've been on holiday.