Can we have a TypeScript support for the Expo app.
Can jest be supported officially as well? I cannot make jest work with Typescript, it just does not run any test cases :-<
TypeScript is supported as of v31. After doing an expo init and an npm install --save @types/expo, I was able to start importing *.ts and *.tsx files and it Just Worked.
I made a Typescript boilerplate for Expo projects. It is currently using the newest Expo SDK [31.0.0].
Here it is:
Some typings are already included in the project.
I hope you will use it, cheers!
@Raul de Heer: here is another one I made, probably quite similar anyway https://github.com/slorber/expo-typescript
Another workaround - @types/expo
@Umidbek Karimov: I don't think that's a workaround, I think that's pretty legit :-) Can't see any of the core Expo contributors I know of on the list, but skimming the typings they seem pretty legit. I think this issue could be closed @md aslam ansari
If you think something is missing, feel free to contribute the changes :-) Upon discovering that Expo actually had a @types repo, I just did so, and it's quite easy :-) https://github.com/DefinitelyTyped/DefinitelyTyped/pull/24306
Hi, I am using https://github.com/janaagaard75/expo-and-typescript/blob/master/src/expo.d.ts from #janaagaard75
@Pavel Zika: Seems pretty good, but it'd be great with official Expo typings that are kept in line with the SDK by the team
@Jesper Madsen: Agree, it would be great if Expo would maintain typescript typings.