3 ms·
I was just trying to get a async/await working in react-native and I kept running up against various errors. Maybe I should wait until Typescript 2.1 is release
by WayneBro 10y ago
I was just trying to get a async/await working in react-native and I kept running up against various errors. Maybe I should wait until Typescript 2.1 is released and just use that.
- DanRosenwasser 10y agoHey, I'm the PM on the TypeScript team and I'm curious to hear about the issues you ran into. async/await already works in TS 2.0 when targeting ES6, so you should have had a good experience in that respect. Feel free to DM me on Twitter at @drosenwasser.
- WayneBro 10y agoOh I was actually using the default react-native config which I assume is ES6. So, I was just saying that I was considering switching to TypeScript instead. It surprised me that async didn't seem to work by default in react-native because their documentation stated support for it very plainly. Maybe it's because I was on Windows or because I am using Node v4. Thanks for the offer but I will probably continue to slog through this on my own. I'm really just getting started with React even though I've been reading about it forever. I don't know TypeScript very well either but maybe I will start learning!