Can we have a TypeScript support for the Expo app.
Great work, couldn't wait to try it. Thanks
with sdk33 we have a template to get started with typescript and the expo package as well as all unimodules include typescript definitions
more info in https://blog.expo.io/expo-sdk-v33-0-0-is-now-available-52d1c99dfe4c
@Brent Vatne: Expo is baddass. Thanks for the progress! 🍻
Is there an easy way to check which typescript is currently supported by Expo? And is it planned to start supporting ts 3.4?
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.