Expo init - typescript
complete
F
Franklin Josh
Expo init command in CLI has only two options to create project. Blank project and something with React Navigation.
It would be nice, it there will be third option -> Typescript. It will create same project as blank one, but it will have tsconfig.json and some necessary things, which are required (and/or) useful. (For example, I don't know, if I need package tslib). Some Babel configuration, when TS is natively supported
Some inspiration:
or
Brent Vatne
complete
there is now a blank project template with typescript configured available for expo init. more info in https://blog.expo.io/expo-sdk-v33-0-0-is-now-available-52d1c99dfe4c
SHAN Huiyang
Brent Vatne: This is great and please update this in expo docs.
Brent Vatne
SHAN Huiyang: done! deploying https://github.com/expo/expo/commit/55135c8e198b3ad39ff10f5633e3d051d50ed4d2 shortly
Brent Vatne
planned
Aidan Feldman
Brent Vatne
this PR makes expo-cli support arbitrary templates: https://github.com/expo/expo-cli/pull/217
F
Franklin Josh
Brent Vatne: Definetely love it! :)
But I think, that it will be better, if Expo will have some official instructions (blog/docs post) or a default template (I think better for me and others) from expo init.
I know, that Expo is not natively/fully supporting TS, but I hope, making app in TS from scratch will become easier.
Brent Vatne
Franklin Josh: we actually do plan on supporting ts so we will get to this point eventually, just saying that shortly you'll be able to use arbitrary templates easily in the meantime. more info re ts - https://blog.expo.io/expo-for-professionals-218b7937fafb
P
Porge Kowalski
Or this one?